busybox: add an upstream ntpd fix (#12841)
[openwrt/svn-archive/archive.git] / package / busybox / patches / 200-etc_crontabs.patch
index e9609bd5fa45429ebeb266ce3d41f7e2248108b5..ebf2990502ebf850bc4ba7ceeae8cb693c5e88da 100644 (file)
@@ -1,26 +1,22 @@
-Index: busybox-1.7.2/miscutils/crond.c
-===================================================================
---- busybox-1.7.2.orig/miscutils/crond.c       2007-10-30 15:35:00.000000000 -0500
-+++ busybox-1.7.2/miscutils/crond.c    2007-10-30 15:35:00.000000000 -0500
-@@ -15,7 +15,7 @@
- #include "libbb.h"
+--- a/miscutils/crond.c
++++ b/miscutils/crond.c
+@@ -37,7 +37,7 @@
  
- #ifndef CRONTABS
--#define CRONTABS        "/var/spool/cron/crontabs"
+ #define TMPDIR          CONFIG_FEATURE_CROND_DIR
+-#define CRONTABS        CONFIG_FEATURE_CROND_DIR "/crontabs"
 +#define CRONTABS        "/etc/crontabs"
+ #ifndef SENDMAIL
+ # define SENDMAIL       "sendmail"
  #endif
- #ifndef TMPDIR
- #define TMPDIR          "/var/spool/cron"
-Index: busybox-1.7.2/miscutils/crontab.c
-===================================================================
---- busybox-1.7.2.orig/miscutils/crontab.c     2007-10-30 15:35:00.000000000 -0500
-+++ busybox-1.7.2/miscutils/crontab.c  2007-10-30 15:35:00.000000000 -0500
-@@ -13,7 +13,7 @@
+--- a/miscutils/crontab.c
++++ b/miscutils/crontab.c
+@@ -22,7 +22,7 @@
  #include "libbb.h"
  
- #ifndef CRONTABS
--#define CRONTABS        "/var/spool/cron/crontabs"
+-#define CRONTABS        CONFIG_FEATURE_CROND_DIR "/crontabs"
 +#define CRONTABS        "/etc/crontabs"
+ #ifndef CRONUPDATE
+ #define CRONUPDATE      "cron.update"
  #endif
- #ifndef TMPDIR
- #define TMPDIR          "/var/spool/cron"