diff options
author | bbraun <bbraun@FreeBSD.org> | 2002-02-06 02:00:07 +0000 |
---|---|---|
committer | bbraun <bbraun@FreeBSD.org> | 2002-02-06 02:00:07 +0000 |
commit | 580cee0675f170ae52a27f2cab3eb4e9b5950c92 (patch) | |
tree | 7f7a0cf32d966b795b4b84c2ec92e9801e8633cc /usr.sbin | |
parent | 2ccafe67719df1396683dbe7ad031f38c13eac67 (diff) | |
download | FreeBSD-src-580cee0675f170ae52a27f2cab3eb4e9b5950c92.zip FreeBSD-src-580cee0675f170ae52a27f2cab3eb4e9b5950c92.tar.gz |
Make cron actually build without defining LOGIN_CAP.
Reviewed by: jkh
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/cron/cron/popen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/cron/cron/popen.c b/usr.sbin/cron/cron/popen.c index f22f421..806676d 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; |