cvs commit: src/usr.sbin/rpc.statd file.c

Don Lewis truckman at
Mon Aug 20 06:00:48 PDT 2007

truckman    2007-08-20 13:00:48 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    usr.sbin/rpc.statd   file.c 
  MFC file.c 1.8
    If the mmap() call in rpc.statd fails, rpc.statd prints a warning
    message and then dumps core because the subsequent code assumes that
    mmap() succeeded.  Since rpc.statd does not have fallback code to
    implement the functionality needed to operate on the status file if
    it is not memory mapped, rpc.statd should use err() to force the process
    to exit if the mmap() call fails.
  PR:             bin/115430 (mmap() failure previously fixed in statd.c
  Revision  Changes    Path  +1 -1      src/usr.sbin/rpc.statd/file.c

More information about the cvs-src mailing list