Red Hat Bugzilla – Bug 461208
man page is not clear
Last modified: 2008-09-08 16:59:58 EDT
I've tried reading this section of the man page many times now, but I can't make sense of it:
$ man updatedb.conf
Unlike the traditional behavior of PRUNEFS and PRUNEPATHS, which
excludes the matched directory (or the root of a matched file system)
from the created database, the matched directory is entered in the cre-
ated database. This allows e.g. locate /tmp to find the standard tem-
porary directories even though their contents are excluded from the
Thanks for your report.
Can you describe more precisely what's unclear, please? Or perhaps suggest an alternate wording?
I would happily suggest alternate wording, but I don't know what the paragraph is trying to say.
If there were shorter, clearer sentences, rewritten without use of brackets, without use of "e.g." then it would make more sense.
Is this a bit better?
When a directory is matched by PRUNEFS, PRUNENAMES or PRUNEPATHS, updatedb(8) does not scan the contents of the directory. The path of the directory itself is, however, entered in the created database. For example, if /tmp is in PRUNEPATHS, locate(1) will not show any files stored in /tmp, but it can show the "/tmp" directory. This behavior differs from traditional locate implementations.
Ah now I get it! Makes perfect sense now, excellent :)
Thanks, fixed in the repository.
The updated man page will be available in the next mlocate release.