hi list, some time ago i changed the crontab file location. I got confused because crontab -e could not find that file. this patch moves the defines into a separate header that can be stored in miscutils, please apply.
re, wh ps: the next step is to make it changeable from kconfig
--- busybox-1.6.0/miscutils/crond.c.org 2007-06-21 15:00:20.000000000 +0200 +++ busybox-1.6.0/miscutils/crond.c 2007-06-21 14:59:30.000000000 +0200 @@ -14,24 +14,16 @@ #include "libbb.h" #include <sys/syslog.h> +#include "cron.h" #define arysize(ary) (sizeof(ary)/sizeof((ary)[0])) -#ifndef CRONTABS -#define CRONTABS "/var/spool/cron/crontabs" -#endif -#ifndef TMPDIR -#define TMPDIR "/var/spool/cron" -#endif #ifndef SENDMAIL #define SENDMAIL "/usr/sbin/sendmail" #endif #ifndef SENDMAIL_ARGS #define SENDMAIL_ARGS "-ti", "oem" #endif -#ifndef CRONUPDATE -#define CRONUPDATE "cron.update" -#endif #ifndef MAXLINES #define MAXLINES 256 /* max lines in non-root crontabs */ #endif
--- busybox-1.6.0/miscutils/crontab.c.org 2007-06-21 15:00:31.000000000 +0200 +++ busybox-1.6.0/miscutils/crontab.c 2007-06-21 15:00:00.000000000 +0200 @@ -12,15 +12,9 @@ #include "libbb.h" -#ifndef CRONTABS -#define CRONTABS "/var/spool/cron/crontabs" -#endif -#ifndef TMPDIR -#define TMPDIR "/var/spool/cron" -#endif -#ifndef CRONUPDATE -#define CRONUPDATE "cron.update" -#endif +#include "cron.h" + + #ifndef PATH_VI #define PATH_VI "/bin/vi" /* location of vi */ #endif
#ifndef CRONTABS #define CRONTABS "/var/spool/cron/crontabs" #endif #ifndef TMPDIR #define TMPDIR "/var/spool/cron" #endif #ifndef CRONUPDATE #define CRONUPDATE "cron.update" #endif
_______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
