aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/cron
diff options
context:
space:
mode:
authorRob Braun <bbraun@FreeBSD.org>2002-02-06 02:00:07 +0000
committerRob Braun <bbraun@FreeBSD.org>2002-02-06 02:00:07 +0000
commitaf71ab4f58b808e7a44d7fe9118df3588a892208 (patch)
tree7f7a0cf32d966b795b4b84c2ec92e9801e8633cc /usr.sbin/cron
parentfe94b852b3fba66785cefea758a500a1db449aed (diff)
downloadsrc-af71ab4f58b808e7a44d7fe9118df3588a892208.tar.gz
src-af71ab4f58b808e7a44d7fe9118df3588a892208.zip
Make cron actually build without defining LOGIN_CAP.
Reviewed by: jkh
Notes
Notes: svn path=/head/; revision=90276
Diffstat (limited to 'usr.sbin/cron')
-rw-r--r--usr.sbin/cron/cron/popen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/cron/cron/popen.c b/usr.sbin/cron/cron/popen.c
index f22f421a2519..806676da4429 100644
--- a/usr.sbin/cron/cron/popen.c
+++ b/usr.sbin/cron/cron/popen.c
@@ -150,12 +150,12 @@ cron_popen(program, type, e)
(void)open(_PATH_DEVNULL, O_RDWR);
(void)close(pdes[1]);
}
-# if defined(LOGIN_CAP)
if (e != NULL) {
/* Set user's entire context, but skip the environment
* as cron provides a separate interface for this
*/
usernm = env_get("LOGNAME", e->envp);
+# if defined(LOGIN_CAP)
if ((pwd = getpwnam(usernm)) == NULL)
pwd = getpwuid(e->uid);
lc = NULL;