summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-05-30 07:31:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-05-30 07:31:42 +0000
commit65fec01c0d1460676525e6d1b0b5b4d708add5fc (patch)
treecade9ea15b5e6855a4500a7324df9eaee8042201 /gnu
parent8eb1f1f8d6285444ca598d5bd19f11a89e5ac344 (diff)
umask safety (should we mktemp(1) this?)
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/sendbug/sendbug.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/usr.bin/sendbug/sendbug.sh b/gnu/usr.bin/sendbug/sendbug.sh
index 00a3101b7d1..aebf932083d 100644
--- a/gnu/usr.bin/sendbug/sendbug.sh
+++ b/gnu/usr.bin/sendbug/sendbug.sh
@@ -21,7 +21,7 @@
# along with GNU GNATS; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
-# $OpenBSD: sendbug.sh,v 1.4 1997/02/18 08:12:11 tholo Exp $
+# $OpenBSD: sendbug.sh,v 1.5 1997/05/30 07:31:41 deraadt Exp $
# The version of this send-pr.
VERSION=3.97
@@ -69,6 +69,9 @@ if [ ! -f "$MAILER" ]; then
exit 1
fi
+um=`umask`
+umask 077
+
# How to read the passwd database.
if [ -f /bin/domainname ]; then
if [ "`/bin/domainname`" != "" -a -f /usr/bin/ypcat ]; then