Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Aug 2009 13:02:21 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/usr.bin/look look.c
Message-ID:  <200908311302.n7VD2VWH086819@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
cperciva    2009-08-31 13:02:21 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    usr.bin/look         look.c 
  Log:
  SVN rev 196695 on 2009-08-31 13:02:21Z by cperciva
  
  MFC r196558: Don't try to mmap the contents of empty files.  This behaviour
  was harmless prior to r195693, when mmap(2) changed from silently ignoring
  requests for mapping zero bytes to returning EINVAL; this commit can be seen
  as adjusting for the change in mmap(2) in order to make look(1) act like it
  did previously.
  
  Reviewed by:    jhb
  Approved by:    re (kib)
  
  Revision   Changes    Path
  1.18.10.2  +4 -0      src/usr.bin/look/look.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908311302.n7VD2VWH086819>