bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Request: old-format locate database from big-endian machine


From: James Youngman
Subject: Request: old-format locate database from big-endian machine
Date: Mon, 4 Jun 2007 11:44:16 +0100

All,

The findutils code currently uses getw() to read words from old-format
databases.  This function reads a word from a file using a system's
native byte order.  At the moment we simply assume the byte order is
the same for locate and updatedb.

However, I believe it would be fairly simple to detect when this is
not the case.  Could somebody build an old-format locate database on a
big-endian machine for me?  You can email me either a URL for teh
resulting database or the database itself.

I need a database which requires getw() to work, which means a shared
prefix on one of the entries of more than 14 bytes.   The list of
filenames below would suffice, but don't use filenames long enough to
be dangerous for findutils versions before 4.2.31:-

tmp/subdir
tmp/subdir/________________________________________________________________________________fred1
tmp/subdir/________________________________________________________________________________fred2
tmp/subdir/________________________________________________________________________________fred3
tmp/subdir/________________________________________________________________________________fred4
tmp/subdir/foo

Thanks,
James.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]