Date: Fri, 24 Jul 2009 13:40:25 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/locate/locate fastfind.c locate.c Message-ID: <200907241340.n6ODej5X017929@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2009-07-24 13:40:25 UTC
FreeBSD src repository
Modified files:
usr.bin/locate/locate fastfind.c locate.c
Log:
SVN rev 195839 on 2009-07-24 13:40:25Z by jhb
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
Revision Changes Path
1.16 +0 -3 src/usr.bin/locate/locate/fastfind.c
1.19 +2 -0 src/usr.bin/locate/locate/locate.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907241340.n6ODej5X017929>
