diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-01-12 00:00:01 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-01-12 00:00:01 +0000 |
commit | 18fd611b537f1be6757c7872c682dc0e03220ed3 (patch) | |
tree | 417212e4eaaf75c15c3517c62199fc990eba89df /sysdeps/posix | |
parent | 390955cbdeb674bead490fc3f74a8a0893ea83cf (diff) | |
download | glibc-18fd611b537f1be6757c7872c682dc0e03220ed3.tar.gz glibc-18fd611b537f1be6757c7872c682dc0e03220ed3.tar.xz glibc-18fd611b537f1be6757c7872c682dc0e03220ed3.zip |
Update.
* sysdeps/posix/tempname.c: Open files with mode 0600.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/tempname.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/posix/tempname.c b/sysdeps/posix/tempname.c index ed6db1a135..7689bb01e3 100644 --- a/sysdeps/posix/tempname.c +++ b/sysdeps/posix/tempname.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,92,93,94,95,96,97,98 Free Software Foundation, Inc. +/* Copyright (C) 1991,92,93,94,95,96,97,98,99 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 @@ -155,8 +155,8 @@ __gen_tempname (char *tmpl, int openit, int largefile) if (openit) { fd = (largefile - ? __open (tmpl, O_RDWR | O_CREAT | O_EXCL, 0666) - : __open64 (tmpl, O_RDWR | O_CREAT | O_EXCL, 0666)); + ? __open (tmpl, O_RDWR | O_CREAT | O_EXCL, 0600) + : __open64 (tmpl, O_RDWR | O_CREAT | O_EXCL, 0600)); if (fd >= 0) { __set_errno (save_errno); |