URL:
  <http://savannah.gnu.org/bugs/?20310>

                 Summary: updatedb generates an invalid database of (1) one
filename (=concatenation of all filenames on the fs)
                 Project: findutils
            Submitted by: davy_gravy
            Submitted on: Sunday 07/01/2007 at 14:21
                Category: updatedb
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: David Purdy
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
           Fixed Release: None

    _______________________________________________________

Details:

At first I thought '''locate''' was broken...
 locate bob
spews a single, very long filename(=concatenation of all filenames present on
the scanned filesystem).

locate -S seems to show the problem:


 locate -S
 Database /var/locatedb is in the LOCATE02 format.
 Locate database size: 2037547 bytes
 Filenames: 1 with a cumulative length of 2037535 bytes
         of which 1 contain whitespace, 
         1 contain newline characters, 
         and 1 contain characters with the high bit set.
 Compression ratio -0.00%



I have noticed that, on the other hand, '''updatedb --old-format''' does
generate a valid database.  Using '''locate''' after the old-format updatedb
does return valid results.


The compilation was done on in the OpenEmbedded/Bitbake environment, target
platform is a PPC603 NAS device.

I have tried 4.2.29 and 4.2.31 - both exhibit the same problem.  





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20310>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-findutils mailing list
Bug-findutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to