From: Thibault Godouet Date: Sat, 27 Mar 2010 15:06:40 +0000 (+0000) Subject: Fixed bug preventing normal user from running fcrontab -l if fcron's uid!=gid X-Git-Tag: ver3_0_6~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ddca212e2e8510bedcfd3c6199551a1ae15088b2;p=thirdparty%2Ffcron.git Fixed bug preventing normal user from running fcrontab -l if fcron's uid!=gid --- 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);