summaryrefslogtreecommitdiff
path: root/lib/utime.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-04-26 13:25:08 +0000
committerJim Meyering <jim@meyering.net>1999-04-26 13:25:08 +0000
commitbc2e8cb6ce1227099a306c0894cec5bca0d134d9 (patch)
tree4de41c12ffedfe7f74030d7a7eba660b8f640efc /lib/utime.c
parent22cce6dadc901db6a9dcb587c9ad19a23d5284db (diff)
downloadcoreutils-bc2e8cb6ce1227099a306c0894cec5bca0d134d9.tar.xz
(utime_null): Don't pass 0666 to open; it's not needed and isn't
guaranteed to be portable.
Diffstat (limited to 'lib/utime.c')
-rw-r--r--lib/utime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utime.c b/lib/utime.c
index 557444c0d..8e6c37d64 100644
--- a/lib/utime.c
+++ b/lib/utime.c
@@ -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