diff options
author | jhb <jhb@FreeBSD.org> | 2009-07-24 13:40:25 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-07-24 13:40:25 +0000 |
commit | 4064b20ecefb589d0b9290e558c0abfc5229c120 (patch) | |
tree | 0ecaf447bb33b2b1bdde8d4d53fead7bfeb0be83 /sys/dev/pbio | |
parent | d607f4c3e36cdfbb5b44004389ae0faeaf456f5b (diff) | |
download | FreeBSD-src-4064b20ecefb589d0b9290e558c0abfc5229c120.zip FreeBSD-src-4064b20ecefb589d0b9290e558c0abfc5229c120.tar.gz |
Move the check to ensure the locate database has the minimum required size
when using mmap() before invoking mmap(). This avoids a confusing error
message when locate is invoked against a zero-size database after the
recent change to make mmap() fail requests to map 0 bytes.
Submitted by: Jaakko Heinonen jh of saunalahti dot fi
Approved by: re (kensmith)
MFC after: 1 week
Diffstat (limited to 'sys/dev/pbio')
0 files changed, 0 insertions, 0 deletions