cvs commit: src/lib/libc/gen getcwd.3

[ Available lists | Index of cvs-src-old | Month of May 2010 | Week of 5 May 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Jilles Tjoelker <jilles@FreeBSD.org>
Date
5 May 2010 22:20:10
Subject
cvs commit: src/lib/libc/gen getcwd.3
Message-ID
201005052220.o45MKAlD088424@repoman.freebsd.org


[ Hide this part ]
jilles      2010-05-05 22:19:52 UTC

FreeBSD src repository

Modified files: (Branch: RELENG_7)
lib/libc/gen getcwd.3
Log:
SVN rev 207685 on 2010-05-05 22:19:52Z 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.17.2.1 +11 -3 src/lib/libc/gen/getcwd.3


Elapsed time: 0.088 seconds