This bug had a serious impact on chown: `chown N:M FILE' (for integer
[gnulib.git] / 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