diff options
author | 2015-11-03 21:10:08 +0000 | |
---|---|---|
committer | 2015-11-03 21:10:08 +0000 | |
commit | 8f2670e1d8fb5e0ddb9947c61d6efbc605496402 (patch) | |
tree | 9104f8bfc9ad48756ff79644a1ac551a2158bd3f /usr.sbin/cron/crontab.c | |
parent | AF_UNIX connect is a "unix" operation, not "rpath wpath" (diff) | |
download | wireguard-openbsd-8f2670e1d8fb5e0ddb9947c61d6efbc605496402.tar.xz wireguard-openbsd-8f2670e1d8fb5e0ddb9947c61d6efbc605496402.zip |
If pledge(2) fails use perror instead of log_it(RealUser, ...) since
RealUser has not been filled in yet.
Diffstat (limited to 'usr.sbin/cron/crontab.c')
-rw-r--r-- | usr.sbin/cron/crontab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index 9745da0a42c..b6fee330734 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crontab.c,v 1.80 2015/11/03 16:30:31 millert Exp $ */ +/* $OpenBSD: crontab.c,v 1.81 2015/11/03 21:10:08 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -74,8 +74,8 @@ main(int argc, char *argv[]) if (pledge("stdio rpath wpath cpath fattr getpw unix flock id proc exec", NULL) == -1) { - log_it(RealUser, getpid(), "pledge", strerror(errno)); - exit(1); + perror("pledge"); + exit(EXIT_FAILURE); } setlocale(LC_ALL, ""); |