(utime_null): Don't pass 0666 to open; it's not needed and isn't
authorJim Meyering <jim@meyering.net>
Mon, 26 Apr 1999 13:25:08 +0000 (13:25 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 26 Apr 1999 13:25:08 +0000 (13:25 +0000)
guaranteed to be portable.

lib/utime.c

index 557444c..8e6c37d 100644 (file)
@@ -54,7 +54,7 @@ utime_null (const char *file)
   int status = 0;
   struct stat sb;
 
-  fd = open (file, O_RDWR, 0666);
+  fd = open (file, O_RDWR);
   if (fd < 0
       || fstat (fd, &sb) < 0
       || safe_read (fd, &c, sizeof (char)) < 0