From 0e3c9ef8b84d9337d210200e6c578864c69695f0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 10 Mar 1998 10:46:41 +0000 Subject: [PATCH] (mkstemp): Open temporary file mode 0600. --- sysdeps/posix/mkstemp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/posix/mkstemp.c b/sysdeps/posix/mkstemp.c index 6daba792665..3765488f73d 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; } -- 2.47.2