Package: approx Version: 2.8.0 Severity: minor hi,
I got a msg from crond /etc/cron.weekly/approx: rmdir: /var/cache/approx/.: Invalid argument run-parts: /etc/cron.weekly/approx exited with return code 123 seems the problem is that find(1) will report /var/cache/approx/. as well. Here's a possible fix: - find /var/cache/approx/. -type d -empty | xargs --no-run-if-empty rmdir + find -L /var/cache/approx/ -mindepth 1 -type d -empty | \ + xargs --no-run-if-empty rmdir The -mindepth 1 avoids listing approx/ itself, -L makes find(1) follow symlinked dirs below approx/. There's no need for the trailing '.', just '/' suffice. But for full & safe cleanup I'd rather have + cd /var/cache/approx/ && \ + find -L . -xtype d -empty | \ + xargs --no-run-if-empty rmdir -p 2>/dev/null || true The -mindepth 1 isn't needed, rmdir -p would cleanup full path while cd /var/cache/approx/ avoids rmdir'g /var/cache/approx itself. -- paolo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]