]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 10 Mar 1998 10:45:39 +0000 (10:45 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 10 Mar 1998 10:45:39 +0000 (10:45 +0000)
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>.

ChangeLog
sysdeps/posix/mkstemp.c

index 40c706ff0ad1b7ae6764d891ee6a5cbd5454d65f..286ffd7f47bcd3bc2f62b9cd02b30e99eb2a15f0 100644 (file)
--- 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
index 6daba79266576b7e33cd9a64b46093f5f9ec2a90..3765488f73d3c34f872dbc6ccc6201375e3ec63d 100644 (file)
@@ -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;
     }