From: millert Date: Mon, 16 Sep 1996 17:19:54 +0000 (+0000) Subject: umask != file mode X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=69f0c87b6c650e3c7c32d158dae7d17eddf3e0a6;p=openbsd umask != file mode --- 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);