From 69f0c87b6c650e3c7c32d158dae7d17eddf3e0a6 Mon Sep 17 00:00:00 2001 From: millert Date: Mon, 16 Sep 1996 17:19:54 +0000 Subject: [PATCH] umask != file mode --- usr.sbin/cron/crontab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index a6af2f49445..ae7d042a60f 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -16,7 +16,7 @@ */ #if !defined(lint) && !defined(LINT) -static char rcsid[] = "$Id: crontab.c,v 1.3 1996/09/15 10:02:34 deraadt Exp $"; +static char rcsid[] = "$Id: crontab.c,v 1.4 1996/09/16 17:19:54 millert Exp $"; #endif /* crontab - install and manage per-user crontab files @@ -316,7 +316,7 @@ edit_cmd() { } } - um = umask(0600); + um = umask(077); (void) sprintf(Filename, "/tmp/crontab.XXXXXXXX"); if ((t = mkstemp(Filename)) == -1) { perror(Filename); -- 2.20.1