From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.6 i686; en-US; rv:0.9.1) Gecko/20010609 Description of problem: slocate ignores datbases passed in the LOCATE_PATH environment variable. How reproducible: Always Steps to Reproduce: $ mkdir -p /tmp/locate/asdfasdf/time $ locate -o x -U /tmp/locate $ env LOCATE_PATH=x locate asdfasdf $ locate -d x asdfasdf /tmp/locate/asdfasdf /tmp/locate/asdfasdf/time Additional info: Here's a patch. --- slocate-2.5/main.c.orig Tue Jul 17 18:15:10 2001 +++ slocate-2.5/main.c Tue Jul 17 18:16:33 2001 @@ -1362,6 +1362,10 @@ /* Add the LOCATE_PATH environment variable to the list of databases to search in */ parse_decode_path(getenv("LOCATE_PATH")); + /* If we found something in LOCATE_PATH then don't overwrite it with the default */ + if(SLOCATE_PATH && *SLOCATE_PATH) + ADD_SLOCATEDB=0; + /* Loop through specified command line arguments */ while ((ch = getopt(args,argv,"VvuhqU:r:o:e:l:d:-:n:f:ci")) != EOF) { switch(ch) {
Please verify this with a newer version of Red Hat Enterprise Linux or Fedora Core and reopen it against the new version if it still occurs. Closing as "not a bug" for now.