src/inc/portable.h 1.30

1.30 2010/03/19 19:11:24 angie
Converted touchFile to maybeTouchFile because ownership of an existing file (not just permissions) can cause problems.
Index: src/inc/portable.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/portable.h,v
retrieving revision 1.29
retrieving revision 1.30
diff -b -B -U 4 -r1.29 -r1.30
--- src/inc/portable.h	24 Feb 2010 00:50:59 -0000	1.29
+++ src/inc/portable.h	19 Mar 2010 19:11:24 -0000	1.30
@@ -143,9 +143,10 @@
 
 boolean isPipe(int fd);
 /* determine in an open file is a pipe  */
 
-void touchFile(char *fileName);
-/* If file exists, set its access and mod times to now.  If it doesn't exist, create it. */
+boolean maybeTouchFile(char *fileName);
+/* If file exists, set its access and mod times to now.  If it doesn't exist, create it.
+ * Return FALSE if we have a problem doing so. */
 
 #endif /* PORTABLE_H */