Hi,

i found a bug in the init script of the crond.

At start it creates the spool directory and then a link from there 
to /etc/crontabs.

If you restart the service, the link ain't removed nor overwritten. It simply 
gets written in /etc/crontabs and points to /etc/crontabs. A simple loop.

(and you should use ln -sf to prevent ln from nagging)

Patch is in the attachment.


Sincerely yours,
Matthias
Index: package/busybox/files/crond.init
===================================================================
--- package/busybox/files/crond.init	(Revision 2013)
+++ package/busybox/files/crond.init	(Arbeitskopie)
@@ -9,7 +9,7 @@
 	;;
 start)
 	mkdir -p /var/spool/cron
-	ln -s /etc/crontabs /var/spool/cron/crontabs
+	ln -sf /etc/crontabs /var/spool/cron/
 	crond -c /etc/crontabs
 	;;
 stop)
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers

Reply via email to