If /etc/crontabs contains several files, /etc/init.d/cron may misbehave
because it forgets to quote the list.
Also if /var/spool/cron/crontabs is a directory, then /etc/init.d/cron
will place a spurious crontabs symlink into it.


        Stefan


Index: package/busybox/files/cron
===================================================================
--- package/busybox/files/cron  (révision 14043)
+++ package/busybox/files/cron  (copie de travail)
@@ -3,9 +3,9 @@
 START=50
 
 start () {
-       [ -z $(ls /etc/crontabs/) ] && exit 1
+       [ -z "$(ls /etc/crontabs/)" ] && exit 1
        mkdir -p /var/spool/cron
-       [ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs 
/var/spool/cron/crontabs
+       ln -s /etc/crontabs /var/spool/cron/ 2>/dev/null
        crond -c /etc/crontabs
 }
 

_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to