]> git.pld-linux.org Git - packages/fcron.git/blobdiff - fcron-accept_readable_fcron.conf.patch
Up to 3.3.1
[packages/fcron.git] / fcron-accept_readable_fcron.conf.patch
index 4f0fd5aa8a239a7ff2eefec772d3ee3b11bdb50e..1dfcf08c5dbff44db108187e450d7d15f53e62ba 100644 (file)
@@ -1,15 +1,15 @@
---- subs.c.orig        2007-01-15 22:41:06.000000000 +0100
-+++ subs.c     2007-02-07 10:45:31.000000000 +0100
+--- fcronconf.c.orig   2007-01-15 22:41:06.000000000 +0100
++++ fcronconf.c        2007-02-07 10:45:31.000000000 +0100
 @@ -222,10 +222,9 @@
      /* check if the file is secure : owner:root, group:fcron,
       * writable only by owner */
-     if ( fstat(fileno(f), &st) != 0 
--       || st.st_uid != rootuid || st.st_gid != fcrongid
-        || st.st_mode & S_IWGRP || st.st_mode & S_IWOTH ) {
--      error("Conf file (%s) must be owned by root:" GROUPNAME 
--            " and (no more than) 644 : ignored", fcronconf, GROUPNAME);
-+      error("Conf file (%s) must not have more perms than 644 : ignored", 
-+              fcronconf);
-       fclose(f);
-       return;
+     if (fstat(fileno(f), &st) != 0
+-        || st.st_uid != rootuid || st.st_gid != fcrongid
+         || st.st_mode & S_IWGRP || st.st_mode & S_IWOTH) {
+-        error("Conf file (%s) must be owned by root:" GROUPNAME
+-              " and (no more than) 644 : ignored", fcronconf, GROUPNAME);
++        error("Conf file (%s) must not have more perms than 644 : ignored",
++              fcronconf);
+         xfclose_check(&f, fcronconf);
+         return;
      }
This page took 0.150236 seconds and 4 git commands to generate.