diff options
author | bde <bde@FreeBSD.org> | 1995-04-02 16:36:39 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-04-02 16:36:39 +0000 |
commit | 7caaf6f20052c6406feca4802b6bb8eb5dd59db2 (patch) | |
tree | 819ca4e25504b405c638df6f4cb96b1bd242011d /usr.bin/locate | |
parent | 7d745e5a93e3605f065808ca83cb2a5012af188a (diff) | |
download | FreeBSD-src-7caaf6f20052c6406feca4802b6bb8eb5dd59db2.zip FreeBSD-src-7caaf6f20052c6406feca4802b6bb8eb5dd59db2.tar.gz |
Make this actually work. It always failed in FreeBSD because it attempted
to open the mounted block device containing the directory to put the bad
sector files in, and opening of mounted block devices hasn't been allowed
since Net/2 or before. Attempt to open the raw device instead. Be more
careful about long names.
Use lstat() instead of stat() to search for block devices so that my
symlink to the default floppy doesn't cause problems.
Check for truncation of the block number when it is squeezed through the
mknod() interface. The maximum used to be only 32767, but now it large
enough.
Diffstat (limited to 'usr.bin/locate')
0 files changed, 0 insertions, 0 deletions