Make cron actually build without defining LOGIN_CAP.

Reviewed by: jkh
This commit is contained in:
Rob Braun 2002-02-06 02:00:07 +00:00
parent fe94b852b3
commit af71ab4f58
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90276

View File

@ -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;