On Tue, 06 May 2014, Andy Spiers wrote: > It's trying to remove /var/cache/www when I guess it probably > shouldn't. I think this is due to an error in the options to the find > command in the script. The following patch resolves this: > > --- /etc/cron.d/libapache-gallery-perl > +++ /etc/cron.d/libapache-gallery-perl > @@ -17,7 +17,7 @@ > # remove empty directories > start-stop-daemon --start --pidfile /dev/null --startas /bin/sh \ > --oknodo --chuid "$user" -- -c \ > - "find '$cachedir' -depth -type d -print0 | \ > + "find '$cachedir' -empty -type d -print0 | \ > xargs -r0 rmdir --ignore-fail-on-non-empty" > fi
Thanks for the report. This actually should be -mindepth 1, not -empty, and the -depth needs to be there. [It's failing to remove /var/cache/www not because it's empty, but because it doesn't have permissions to remove it.] -- Don Armstrong http://www.donarmstrong.com The solution to a problem changes the problem. -- Peer's Law -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org