Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 163340 - PRUNEFS and PRUNEPATHS appear to be environmental variables but aren't.
Summary: PRUNEFS and PRUNEPATHS appear to be environmental variables but aren't.
Alias: None
Product: Fedora
Classification: Fedora
Component: slocate
Version: 3
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Miloslav Trmač
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2005-07-15 11:33 UTC by Jonathan Werrett
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-07-15 19:48:25 UTC

Attachments (Terms of Use)

Description Jonathan Werrett 2005-07-15 11:33:04 UTC
Description of problem:

In slocate's /etc/updatedb.conf PRUNEFS and PRUNEPATHS appear to be used
as environmental variables. Eg. they are exported and
/etc/cron.daily/slocate.cron source's the conf file before running updatedb.

However, updatedb ignores the environment and reads the conf file (whose
location is compiled in), looking for the lines that start with PRUNEFS and

Version-Release number of selected component (if applicable):

How reproducible:

Have a /etc/updatedb.conf like this:
PRUNEFS="sysfs selinuxfs usbdevfs devpts NFS nfs afs sfs proc smbfs cifs autofs
auto iso9660 udf"
PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /net /sfs /selinux /udev /mnt/floppy"
export PRUNEFS
PRUNEPATHS="$PRUNEPATHS /data /data1 /data2 /aerialcache"
Actual results:

/usr/bin/updatedb will have an affective PRUNEPATHS of
"/tmp /usr/tmp /var/tmp /afs /net /sfs /selinux /udev /mnt/floppy"

Expected results:

If PRUNEPATHS was being read as an environmental, you'd expect this:
"/tmp /usr/tmp /var/tmp /afs /net /sfs /selinux /udev /mnt/floppy /data /data1
/data2 /aerialcache"

Comment 1 Miloslav Trmač 2005-07-15 19:48:25 UTC
Thanks for your report.

This was fixed in FC4: there are no 'export' lines in /etc/updatedb.conf,
and updatedb.conf(5) documents the file format.
/etc/cron.daily/slocate.cron still sources the file unfortunately.

Note You need to log in before you can comment on or make changes to this bug.