cvs commit: src/usr.sbin/rpc.lockd kern.c

Robert Watson rwatson at FreeBSD.org
Wed May 14 20:19:32 PDT 2003


rwatson     2003/05/14 20:19:30 PDT

  FreeBSD src repository

  Modified files:
    usr.sbin/rpc.lockd   kern.c 
  Log:
  When getting back an NLM DENIED response for a requested lock from the
  server, map it to EAGAIN locally rather than EACCES.  The NLM spec
  indicates the DENIED corresponds to lock contention, not a permission
  failure.  This fixes O_EXLOCK/O_SHLOCK with O_NONBLOCK, which would
  previously give a permission error, which in turn fixes things
  like mailq(8) and lockf(1) over NFS.
  
  Approved by:    scottl (re)
  Reviewed by:    truckman, Andrew P Lentvorski, Jr. <bsder at allcaps.org>
  Idea from:      truckman
  
  Revision  Changes    Path
  1.12      +2 -2      src/usr.sbin/rpc.lockd/kern.c


More information about the cvs-src mailing list