diff -ur -N -x find.info findutils-20080905.orig/doc/find.texi findutils-20080905/doc/find.texi --- findutils-20080905.orig/doc/find.texi 2008-08-02 13:12:26.000000000 +0200 +++ findutils-20080905/doc/find.texi 2008-08-02 13:17:28.000000000 +0200 @@ -3379,6 +3379,19 @@ @code{slocate}. @xref{Database Formats}, for a detailed description of each format. address@hidden address@hidden +Generate a @code{locate} database @var{pathprefix/dbfile} for files in the +tree rooted at @var{pathprefix}, omitting this prefix from the stored file +names and causing @code{locate} to substitute the directory containing the +database file in its place. Assume an nfs server exporting address@hidden/serverpath} and a client mounting this tree as @var{/clientpath}. +Using a @code{locate} database with relative file names for this tree yields +the correct results on both server and client. This option is incompatible +with @code{--old-format} and @code{--netpaths}. Furthermore all paths +specified as @code{--localpaths} or @code{--prunepaths} must be relative and address@hidden must be given as basename or has the default value address@hidden + @item --help Print a summary of the command line usage and exit. @item --version diff -ur -N -x find.info findutils-20080905.orig/locate/updatedb.1 findutils-20080905/locate/updatedb.1 --- findutils-20080905.orig/locate/updatedb.1 2008-09-05 10:07:49.000000000 +0200 +++ findutils-20080905/locate/updatedb.1 2008-09-05 14:44:01.000000000 +0200 @@ -109,6 +109,15 @@ .B updatedb as root. .TP +.B \-\-relpath=\fIpathprefix\fP +Generate a database +.IB pathprefix / dbfile +for files in the tree rooted at +.IR pathprefix , +omitting this prefix from the stored file names and causing +.B locate +to substitute the directory containing the database file in its place. +.TP .B \-\-version Print the version number of .B updatedb