summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/entry.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-01-14 17:27:51 +0000
committermillert <millert@openbsd.org>2015-01-14 17:27:51 +0000
commit27802abd9ba240d10bceaa25074a7c3ea9ad2422 (patch)
tree6c7274840a11451ee3741bb8db125e4069389553 /usr.sbin/cron/entry.c
parentUse standard types for wait, readdir, signals and pids. (diff)
downloadwireguard-openbsd-27802abd9ba240d10bceaa25074a7c3ea9ad2422.tar.xz
wireguard-openbsd-27802abd9ba240d10bceaa25074a7c3ea9ad2422.zip
Use HAVE_FOO for BSD-specific features instead of relying on the
BSD macro from sys/param.h.
Diffstat (limited to 'usr.sbin/cron/entry.c')
-rw-r--r--usr.sbin/cron/entry.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/cron/entry.c b/usr.sbin/cron/entry.c
index 8d200ece024..2a4fffdd971 100644
--- a/usr.sbin/cron/entry.c
+++ b/usr.sbin/cron/entry.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: entry.c,v 1.34 2014/08/25 07:50:26 doug Exp $ */
+/* $OpenBSD: entry.c,v 1.35 2015/01/14 17:27:51 millert Exp $ */
/*
* Copyright 1988,1990,1993,1994 by Paul Vixie
@@ -329,7 +329,6 @@ load_entry(FILE *file, void (*error_func)(const char *), struct passwd *pw,
}
e->envp = tenvp;
}
-#if defined(BSD) || defined(__linux)
if (snprintf(envstr, sizeof envstr, "USER=%s", pw->pw_name) >=
sizeof(envstr))
log_it("CRON", getpid(), "error", "can't set USER");
@@ -340,7 +339,6 @@ load_entry(FILE *file, void (*error_func)(const char *), struct passwd *pw,
}
e->envp = tenvp;
}
-#endif
Debug(DPARS, ("load_entry()...about to parse command\n"))