From e81181efd941e51aeb33991b089af8322d2763e6 Mon Sep 17 00:00:00 2001 From: thib Date: Sat, 27 Mar 2010 15:06:40 +0000 Subject: [PATCH] Fixed bug preventing normal user from running fcrontab -l if fcron's uid!=gid --- fcrontab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fcrontab.c b/fcrontab.c index cb265bd..2e6561d 100644 --- a/fcrontab.c +++ b/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); -- 2.50.1