SOURCES: vixie-cron-crond.patch - don't check file modes for files...

hawk hawk at pld-linux.org
Mon Sep 12 12:44:00 CEST 2005


Author: hawk                         Date: Mon Sep 12 10:44:00 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- don't check file modes for files in /etc/cron.d

---- Files affected:
SOURCES:
   vixie-cron-crond.patch (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: SOURCES/vixie-cron-crond.patch
diff -u SOURCES/vixie-cron-crond.patch:1.11 SOURCES/vixie-cron-crond.patch:1.12
--- SOURCES/vixie-cron-crond.patch:1.11	Fri Sep  2 13:16:20 2005
+++ SOURCES/vixie-cron-crond.patch	Mon Sep 12 12:43:55 2005
@@ -97,12 +97,15 @@
  	/* we used to keep this dir open all the time, for the sake of
  	 * efficiency.  however, we need to close it in every fork, and
  	 * we fork a lot more often than the mtime of the dir changes.
-@@ -206,7 +249,7 @@
+@@ -206,7 +249,10 @@
  		log_it(fname, getpid(), "NOT REGULAR", tabname);
  		goto next_crontab;
  	}
 -	if ((statbuf->st_mode & 07777) != 0600) {
-+	if ((statbuf->st_mode & 07733) != 0600) {
++	/* we don't want to check file mode for files in /etc/cron.d,
++	 * for such files pw will be NULL.
++	 */
++	if (pw != NULL && ((statbuf->st_mode & 07733) != 0600)) {
  		log_it(fname, getpid(), "BAD FILE MODE", tabname);
  		goto next_crontab;
  	}
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/vixie-cron-crond.patch?r1=1.11&r2=1.12&f=u




More information about the pld-cvs-commit mailing list