Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2009 03:30:06 +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:  <200908260330.n7Q3UJfV066338@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
cperciva    2009-08-26 03:30:06 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/look         look.c 
  Log:
  SVN rev 196558 on 2009-08-26 03:30:06Z by cperciva
  
  Don't try to mmap the contents of empty files.  This behaviour was harmless
  prior to r195693, since historical behaviour of mmap(2) was to silently
  ignore length-zero mmap requests; but mmap now returns EINVAL, which caused
  look(1) to emit an error message and fail.
  
  Among other things, this makes `freebsd-update fetch` on a newly installed
  8.0-BETA3 system print bogus warning messages.
  
  MFC after:      3 days
  
  Revision  Changes    Path
  1.19      +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?200908260330.n7Q3UJfV066338>