]> granicus.if.org Git - fcron/commitdiff
Fixed bug preventing normal user from running fcrontab -l if fcron's uid!=gid
authorthib <thib@berseker.(none)>
Sat, 27 Mar 2010 15:06:40 +0000 (15:06 +0000)
committerthib <thib@berseker.(none)>
Sat, 27 Mar 2010 15:06:40 +0000 (15:06 +0000)
fcrontab.c

index cb265bdefa106fccb4d2f77ca40c49c26c1291e8..2e6561d1d98b367c280d842357bb07735a5cc32f 100644 (file)
@@ -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);