a94c79bebf0ccf504aa94541f7bfffbdb90fcb2a
kent
  Tue Apr 9 18:47:15 2013 -0700
Adding mustRename wrapper around rename().
diff --git src/inc/portable.h src/inc/portable.h
index 93357ca..bb56367 100644
--- src/inc/portable.h
+++ src/inc/portable.h
@@ -84,30 +84,33 @@
 /* Make a temp name that's almost certainly unique. */
 
 /* This structure helps us generate temp names and use
  * 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. */
+
 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 */