projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2ab7f3
)
(utime_null): Don't pass 0666 to open; it's not needed and isn't
author
Jim Meyering
<jim@meyering.net>
Mon, 26 Apr 1999 13:25:08 +0000
(13:25 +0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 26 Apr 1999 13:25:08 +0000
(13:25 +0000)
guaranteed to be portable.
lib/utime.c
patch
|
blob
|
history
diff --git
a/lib/utime.c
b/lib/utime.c
index 557444c0d30d8b71b6f4482a17fce3cdfeb2d768..8e6c37d64e2e5d7bf1064c56855397af85b10c65 100644
(file)
--- 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