getcwd.3: Add kernel version/commit details to Jann Horn's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-04-06 16:07:18 +02:00
parent de0dd42776
commit 2b1f1a35b5
1 changed files with 3 additions and 1 deletions

View File

@ -81,9 +81,11 @@ The pathname is returned as the function result and via the argument
if present.
If the current directory is not below the root directory of the current
process (e.g. because the process set a new filesystem root using
process (e.g., because the process set a new filesystem root using
.BR chroot (2)
without changing its current directory into the new root),
then, since Linux 2.6.36,
.\" commit 8df9d1a4142311c084ffeeacb67cd34d190eff74
the returned path will be prefixed with the string "(unreachable)".
Such behavior can also be caused by an unprivileged user by changing
the current directory into another mount namespace.