[Bug 816477] New: updatedb does not read UPDATEDB_PRUNEPATHS in /etc/sysconfig/locate
https://bugzilla.novell.com/show_bug.cgi?id=816477 https://bugzilla.novell.com/show_bug.cgi?id=816477#c0 Summary: updatedb does not read UPDATEDB_PRUNEPATHS in /etc/sysconfig/locate Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 0 Platform: x86-64 OS/Version: SUSE Other Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: pth@suse.com ReportedBy: vdziewiecki@suse.com QAContact: qa-bugs@suse.de Found By: Development Blocker: No Steps to reproduce: 1. Put a file in one of the folders mentioned in UPDATEDB_PRUNEPATHS in /etc/sysconfig/locate, for example: ":> /mnt/secret_file" 2. Run "updatedb" 3. Check what updatedb is doing using "ps axv |grep find", then run "locate secret_file" Actual results: - "locate secret_file" locates /mnt/secret_file - "ps axv |grep find" lists this find command: /usr/bin/find / -type d ( -fstype nfs -o -fstype nfs4 -o -fstype NFS -o -fstype proc -o -fstype afs -o -fstype smbfs -o -fstype autofs -o -fstype iso9660 -o -fstype ncpfs -o -fstype coda -o -fstype devpts -o -fstype ftpfs -o -fstype devfs -o -fstype mfs -o -fstype sysfs -o -fstype shfs -o -fstype cifs -o -fstype 9P -o -fstype unknown -o -regex \(^/tmp$\)\|\(^/usr/tmp$\)\|\(^/var/tmp$\)\|\(^/afs$\)\|\(^/amd$\)\|\(^/sfs$\)\|\(^/proc$\)\|\(^/var/spool$\) ) -prune -o -print0 Expected results: - locate secret_file does not locate files in /mnt - for each pruned directory there should be a regex in that find command. OR /etc/sysconfig/locate should be removed if it is not used anyway, to avoid confusion. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=816477 https://bugzilla.novell.com/show_bug.cgi?id=816477#c1 --- Comment #1 from Wojtek Dziewięcki <vdziewiecki@suse.com> 2013-04-22 14:11:26 UTC --- Oh, now I see that /etc/sysconfig/locate is only used in /etc/cron-daily/suse-updatedb. So it's possible this is actually correct behaviour, just very confusing. Feel free to close this if you think this is ok. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=816477 https://bugzilla.novell.com/show_bug.cgi?id=816477#c2 Philipp Thomas <pth@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Philipp Thomas <pth@suse.com> 2013-06-18 07:44:53 CEST --- Yes, this works as intended, tough I agree it is confusing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com