Make cron actually build without defining LOGIN_CAP.
Reviewed by: jkh
This commit is contained in:
parent
fe94b852b3
commit
af71ab4f58
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90276
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user