From: mmaslano Date: Mon, 27 Aug 2007 12:46:32 +0000 (+0200) Subject: Added missing #ifdef WITH_PAM. X-Git-Tag: v4.2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4337920260e9020d66953d73f21c74e9903f555;p=cronie Added missing #ifdef WITH_PAM. --- diff --git a/src/security.c b/src/security.c index e83010e..7530bbc 100644 --- a/src/security.c +++ b/src/security.c @@ -58,10 +58,13 @@ int cron_set_job_security_context(entry *e, user *u, char ***jobenv) { Debug(DSCH, ("Minute-ly job. Recording time %lu\n", minutely_time)) } +#ifdef WITH_PAM if (cron_start_pam(e->pwd) != 0) { syslog(LOG_INFO, "CRON (%s): failed to open PAM security session: %s", e->pwd->pw_name, pam_strerror(pamh,cron_start_pam(e->pwd))); return -1; } +#endif + *jobenv = build_env( e->envp ); #ifdef WITH_SELINUX