[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1239: /etc/cron.daily/find: updatedb doesn't exclude cdrom and others



Package: findutils
Version: 4.1-2

/etc/cron.daily/find in findutils-4.1-2.deb doesn't exclude the /cdrom
directory.  I think it should, since the CD-ROM that is mounted the next
day probably isn't the one that was mounted during the night.

I assume it also doesn't exclude the /floppy, /proc, and /mnt directories,
but I haven't checked.  (What's /disk?)

Fix: use a command similar to the following instead:

	updatedb --prunepaths="/cdrom /tmp /var/tmp /proc" 2>/dev/null

(I choose to run this as root, instead of nobody, but that isn't a good
idea for most others.)


Reply to: