summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/crontab.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-09-16 17:19:55 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-09-16 17:19:55 +0000
commit0eeac555bd0aef9e6d8326dd8e1ae341f7239a98 (patch)
tree904b238b25bc15e87a94cf6311b7dda50f9d1d61 /usr.sbin/cron/crontab.c
parent1884b7c77a2c09aad3b7f761d72c44d495762a71 (diff)
umask != file mode
Diffstat (limited to 'usr.sbin/cron/crontab.c')
-rw-r--r--usr.sbin/cron/crontab.c4
1 files 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);