Date: Wed, 5 May 2010 22:23:29 +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: <201005052223.o45MNkxB088786@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2010-05-05 22:23:29 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
lib/libc/gen getcwd.3
Log:
SVN rev 207686 on 2010-05-05 22:23:29Z by jilles
MFC r206760: 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
Revision Changes Path
1.16.10.1 +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?201005052223.o45MNkxB088786>
