868808e74a74ee59ebd252650cfaed8d8b741a82 kent Sun Jan 19 18:06:17 2014 -0800 Adding mustRemove wrapper around remove. diff --git src/inc/portable.h src/inc/portable.h index 205c2d6..2952a40 100644 --- src/inc/portable.h +++ src/inc/portable.h @@ -87,30 +87,33 @@ * them. Since different servers locate where the cgi * runs from differently, and where the generated html * file runs from - this is necessary for portable code. */ struct tempName { char forCgi[128]; char forHtml[128]; }; void makeTempName(struct tempName *tn, char *base, char *suffix); /* Make a good name for a temp file. */ void mustRename(char *oldName, char *newName); /* Rename file or die trying. */ +void mustRemove(char *path); +/* Remove file or die trying */ + char *semiUniqName(char *base); /* Figure out a name likely to be unique. * Name will have no periods. Returns a static * buffer, so best to clone result unless using * immediately. */ char *cgiDir(); /* Return directory to look for cgi in. */ char *trashDir(); /* Return directory for relative path to trash from cgi binaries */ void mkdirTrashDirectory(char *prefix); /* create the specified trash directory if it doesn't exist */