From 18fd611b537f1be6757c7872c682dc0e03220ed3 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 12 Jan 1999 00:00:01 +0000 Subject: Update. * sysdeps/posix/tempname.c: Open files with mode 0600. --- sysdeps/posix/tempname.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdeps/posix/tempname.c') 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); -- cgit v1.2.3-70-g09d2