Blame SOURCES/cronie-1.4.11-crontab-root.patch

304494
diff -up cronie-1.4.11/src/crontab.c.root cronie-1.4.11/src/crontab.c
304494
--- cronie-1.4.11/src/crontab.c.root	2017-03-07 13:52:23.000000000 +0100
304494
+++ cronie-1.4.11/src/crontab.c	2017-03-07 13:53:40.491278915 +0100
304494
@@ -170,7 +170,7 @@ int main(int argc, char *argv[]) {
304494
 	}
304494
 
304494
 #if defined(WITH_PAM)
304494
-	if (cron_start_pam(pw) != PAM_SUCCESS) {
304494
+	if (getuid() != 0 && cron_start_pam(pw) != PAM_SUCCESS) {
304494
 		fprintf(stderr,
304494
 			"You (%s) are not allowed to access to (%s) because of pam configuration.\n",
304494
 			User, ProgramName);