[OpenAFS-devel] reason for afsfileprocs.c:876-885?

Adam Megacz megacz@cs.berkeley.edu
Fri, 13 Apr 2007 16:04:47 -0700


Does anybody know why this is in afsfileprocs.c?  It doesn't appear to
be UNIX file semantics.

  /*
   * The check with the ownership below is a kludge to allow
   * reading of files created with no read permission. The owner
   * of the file is always allowed to read it.
   */
  if ((client->ViceId != targetptr->disk.owner)
      && VanillaUser(client))
      errorCode =
          (((OWNERREAD | OWNEREXEC) & targetptr->disk.
            modeBits) ? 0 : EACCES);


-- 
PGP/GPG: 5C9F F366 C9CF 2145 E770  B1B8 EFB1 462D A146 C380