diff options
author | millert <millert@openbsd.org> | 2015-11-11 17:19:22 +0000 |
---|---|---|
committer | millert <millert@openbsd.org> | 2015-11-11 17:19:22 +0000 |
commit | d31b1261433056ebb0d9885183183655d088a2fa (patch) | |
tree | 63fd49ae082ce9d8691263d7b0e75a4f1bb18db2 /usr.sbin/cron | |
parent | Use warn/warnx where sensible and add fatal/fatalx wrappers for (diff) | |
download | wireguard-openbsd-d31b1261433056ebb0d9885183183655d088a2fa.tar.xz wireguard-openbsd-d31b1261433056ebb0d9885183183655d088a2fa.zip |
Niether cron nor crontab need flock permission.
Diffstat (limited to 'usr.sbin/cron')
-rw-r--r-- | usr.sbin/cron/cron.c | 4 | ||||
-rw-r--r-- | usr.sbin/cron/crontab.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/cron/cron.c b/usr.sbin/cron/cron.c index c986f91b042..2d35c85aa1b 100644 --- a/usr.sbin/cron/cron.c +++ b/usr.sbin/cron/cron.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cron.c,v 1.67 2015/11/11 03:20:19 deraadt Exp $ */ +/* $OpenBSD: cron.c,v 1.68 2015/11/11 17:19:22 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -99,7 +99,7 @@ main(int argc, char *argv[]) set_cron_cwd(); - if (pledge("stdio rpath wpath cpath fattr getpw unix flock id dns proc exec", + if (pledge("stdio rpath wpath cpath fattr getpw unix id dns proc exec", NULL) == -1) { log_it("CRON", "pledge", strerror(errno)); exit(EXIT_FAILURE); diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index 0974db37d45..e1846993206 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crontab.c,v 1.86 2015/11/11 15:21:01 millert Exp $ */ +/* $OpenBSD: crontab.c,v 1.87 2015/11/11 17:19:22 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -83,7 +83,7 @@ main(int argc, char *argv[]) user_gid = getgid(); crontab_gid = getegid(); - if (pledge("stdio rpath wpath cpath fattr getpw unix flock id proc exec", + if (pledge("stdio rpath wpath cpath fattr getpw unix id proc exec", NULL) == -1) { perror("pledge"); exit(EXIT_FAILURE); |