Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Apr 2010 15:52:50 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libc/gen getcwd.3
Message-ID:  <201004171553.o3HFr9IR042800@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jilles      2010-04-17 15:52:50 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/gen         getcwd.3 
  Log:
  SVN rev 206760 on 2010-04-17 15:52:50Z by jilles
  
  getcwd(3): Clarify that EACCES may or may not be checked.
  
  POSIX permits but does not require checking access on the current and parent
  directories.
  
  Because various programs do not like it if getcwd(3) fails, it seems best
  to avoid checking access as much as possible. There are various reports in
  GNATS about this (search for getcwd).
  
  Our getcwd(3) implementation first queries the kernel for the pathname
  directly, which does not check any permissions but sometimes fails, and then
  falls back to reading all parent directories for the names.
  
  PR:             standards/44425
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.18      +11 -3     src/lib/libc/gen/getcwd.3



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