-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 24 February 2004 08:40 pm, Steven T. Hatton wrote:
I've discovered that adding '/windows' to the UPDATEDB_PRUNEPATHS variable through the YaST Editor for Sysconfig Files has no effect on the contents of the output of locate. IOW, after I change the setting and run updatedb as root, I still get a listing of what's under /windows.
This is the variable in /etc/sysconfig/locate:
UPDATEDB_PRUNEPATHS="/mnt /cdrom /tmp /usr/tmp /var/tmp /var/spool /proc /media /windows"
Am I wrong to think this will prevent /windows from being added to the database? Do I need to blow away the database and start over? That is, are these old entries which haven't been removed?
STH
I should have added that the cronjob also ignores my settings. I'm not sure what to expect when running updatedb from the commandline. I tried explicitly sourcing the /etc/sysconfig/locate and exporting the UPDATEDB_PRUNEPATHS then running updatedb --prunepaths="$UPDATEDB_PRUNEPATHS". That worked as I would expect. /windows no longer shows in the update listing. So please allow me to refine my question. Should adding /windows to the Aplications/Locate/UPDATEDB_PRUNEPATHS list cause the cronjob that rebuilds the locatedb to exclude && remove /windows from the database? It doesn't seem to work like that. Is it broken, or am I screwing up? STH -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAPAn0H2SF0i7rrGwRAjqzAKCMl0X9jic4YPn/0kbKPcjJo/3KgACgq7Mv 0VQANRBMWkAq/rQO/1o/sD4= =WQ1n -----END PGP SIGNATURE-----