diff options
Diffstat (limited to 'sys-process/fcron/files/fcron-3.0.5-gentoo.patch')
-rw-r--r-- | sys-process/fcron/files/fcron-3.0.5-gentoo.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-process/fcron/files/fcron-3.0.5-gentoo.patch b/sys-process/fcron/files/fcron-3.0.5-gentoo.patch new file mode 100644 index 000000000000..bb9fbf01958c --- /dev/null +++ b/sys-process/fcron/files/fcron-3.0.5-gentoo.patch @@ -0,0 +1,24 @@ +Index: fcron-3.0.5/fcrontab.c +=================================================================== +--- fcron-3.0.5.orig/fcrontab.c ++++ fcron-3.0.5/fcrontab.c +@@ -391,7 +391,7 @@ list_file(char *file) + + explain("listing %s's fcrontab", user); + +- fd = open_as_user(file, useruid, fcrontab_uid, O_RDONLY); ++ fd = open_as_user(file, useruid, fcrontab_gid, O_RDONLY); + if ( fd < 0 ) { + if ( errno == ENOENT ) { + explain("user %s has no fcrontab.", user); +@@ -1038,8 +1038,8 @@ main(int argc, char **argv) + /* Open PAM session for the user and obtain any security + credentials we might need */ + +- debug("username: %s", user); +- retcode = pam_start("fcrontab", user, &apamconv, &pamh); ++ debug("username: %s runas: %s", user, runas); ++ retcode = pam_start("fcrontab", runas, &apamconv, &pamh); + if (retcode != PAM_SUCCESS) die_pame(pamh, retcode, "Could not start PAM"); + retcode = pam_authenticate(pamh, 0); /* is user really user? */ + if (retcode != PAM_SUCCESS) |