cronie/debian/patches/0003-Rename-PAM-service-to-cronie.patch

42 lines
1.3 KiB
Diff
Raw Normal View History

2011-07-26 14:00:34 +02:00
From: Christian Kastner <debian@kvr.at>
Date: Thu, 28 Jul 2011 11:11:45 +0200
Subject: Rename PAM service to cronie
Upstream uses "crond"; we switch to "cron" to avoid confusion with Debian's ISC
cron (it uses "cron" but that might change).
Forwaded: not-needed
Last-Update: 2011-07-28
---
Makefile.am | 5 -----
src/security.c | 2 +-
2 files changed, 1 insertions(+), 6 deletions(-)
2019-08-06 19:01:25 +02:00
Index: cronie/Makefile.am
===================================================================
--- cronie.orig/Makefile.am 2019-08-06 18:53:14.280000000 +0200
+++ cronie/Makefile.am 2019-08-06 18:54:00.684000000 +0200
@@ -13,9 +13,3 @@
contrib/cronie.systemd \
anacron/ChangeLog.anacron
2011-07-26 14:00:34 +02:00
-if PAM
-pamdir = $(sysconfdir)/pam.d
-dist_pam_DATA = pam/crond
2019-08-06 19:01:25 +02:00
-else
-EXTRA_DIST += pam/crond
2011-07-26 14:00:34 +02:00
-endif
2019-08-06 19:01:25 +02:00
Index: cronie/src/security.c
===================================================================
--- cronie.orig/src/security.c 2019-08-06 18:53:14.280000000 +0200
+++ cronie/src/security.c 2019-08-06 18:53:43.064000000 +0200
@@ -195,7 +195,7 @@
int cron_start_pam(struct passwd *pw) {
2011-07-26 14:00:34 +02:00
int retcode = 0;
- retcode = pam_start("crond", pw->pw_name, &conv, &pamh);
+ retcode = pam_start("cronie", pw->pw_name, &conv, &pamh);
PAM_FAIL_CHECK;
retcode = pam_set_item(pamh, PAM_TTY, "cron");
PAM_FAIL_CHECK;