From: Tobias Burnus Date: Thu, 31 May 2012 06:10:18 +0000 (+0200) Subject: revert: unix.c (tempfile_open): Pass mode to "open" for O_CREAT. X-Git-Tag: misc/gccgo-go1_1_2~2617 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9daf64e704f70cbd6ec1b9684a3a3e546830d6a2;p=thirdparty%2Fgcc.git revert: unix.c (tempfile_open): Pass mode to "open" for O_CREAT. 2012-05-31 Tobias Burnus Revert: 2012-05-16 Tobias Burnus * io/unix.c (tempfile_open): Pass mode to "open" for O_CREAT. From-SVN: r188048 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 547ed714f811..4ec92adc539c 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,10 @@ +2012-05-31 Tobias Burnus + + Revert: + 2012-05-16 Tobias Burnus + + * io/unix.c (tempfile_open): Pass mode to "open" for O_CREAT. + 2012-05-30 Tobias Burnus * io/io.h: Fix comment typos. diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c index 2e59efdba738..c81163f25635 100644 --- a/libgfortran/io/unix.c +++ b/libgfortran/io/unix.c @@ -1099,9 +1099,9 @@ tempfile_open (const char *tempdir, char **fname) #if defined(HAVE_CRLF) && defined(O_BINARY) fd = open (template, O_RDWR | O_CREAT | O_EXCL | O_BINARY, - S_IRUSR | S_IWUSR, 0600); + S_IRUSR | S_IWUSR); #else - fd = open (template, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR, 0600); + fd = open (template, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); #endif } while (fd == -1 && errno == EEXIST);