From: Jim Meyering Date: Mon, 26 Apr 1999 13:25:08 +0000 (+0000) Subject: (utime_null): Don't pass 0666 to open; it's not needed and isn't X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40e284d3f1e643410c06559522183b1c4eff1030;p=pspp (utime_null): Don't pass 0666 to open; it's not needed and isn't guaranteed to be portable. --- diff --git a/lib/utime.c b/lib/utime.c index 557444c0d3..8e6c37d64e 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