diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-03-10 10:45:39 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-03-10 10:45:39 +0000 |
commit | 6a440665b0e39eaa411f823cf2dcf884df88d69e (patch) | |
tree | 3a14a0b91fcb3a3d1cd6eccb2f4dae254e2a45c5 | |
parent | de100ca78f839854b10a04bf34ef57eb45ac77ae (diff) | |
download | glibc-6a440665b0e39eaa411f823cf2dcf884df88d69e.tar.gz glibc-6a440665b0e39eaa411f823cf2dcf884df88d69e.tar.xz glibc-6a440665b0e39eaa411f823cf2dcf884df88d69e.zip |
Update.
1998-03-10 Andreas Jaeger <aj@arthur.rhein-neckar.de> * sysdeps/posix/mkstemp.c (mkstemp): Open temporary file mode 0600. Reported by Greg Alexander <galexand@sietch.bloomington.in.us>.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/posix/mkstemp.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 40c706ff0a..286ffd7f47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1998-03-10 Andreas Jaeger <aj@arthur.rhein-neckar.de> + + * sysdeps/posix/mkstemp.c (mkstemp): Open temporary file mode + 0600. Reported by Greg Alexander <galexand@sietch.bloomington.in.us>. + 1998-03-10 00:10 Ulrich Drepper <drepper@cygnus.com> * elf/dl-lookup.c (do_lookup): Remove list and n parameter and add diff --git a/sysdeps/posix/mkstemp.c b/sysdeps/posix/mkstemp.c index 6daba79266..3765488f73 100644 --- a/sysdeps/posix/mkstemp.c +++ b/sysdeps/posix/mkstemp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1996 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1996, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -54,7 +54,7 @@ mkstemp (template) template[len - 6] = letters[i]; - fd = open (template, O_RDWR|O_CREAT|O_EXCL, 0666); + fd = open (template, O_RDWR|O_CREAT|O_EXCL, 0600); if (fd >= 0) return fd; } |