mirror of https://github.com/mkerrisk/man-pages
getcwd.3: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a2ac97c78b
commit
de0dd42776
|
@ -81,13 +81,12 @@ The pathname is returned as the function result and via the argument
|
||||||
if present.
|
if present.
|
||||||
|
|
||||||
If the current directory is not below the root directory of the current
|
If the current directory is not below the root directory of the current
|
||||||
process (e.g. because the process set a new filesystem root
|
process (e.g. because the process set a new filesystem root using
|
||||||
using
|
|
||||||
.BR chroot (2)
|
.BR chroot (2)
|
||||||
without changing its current directory into the new root), the returned
|
without changing its current directory into the new root),
|
||||||
path will be prefixed with the string "(unreachable)". Such behavior can
|
the returned path will be prefixed with the string "(unreachable)".
|
||||||
also be caused by an unprivileged user by changing the current directory
|
Such behavior can also be caused by an unprivileged user by changing
|
||||||
into another mount namespace.
|
the current directory into another mount namespace.
|
||||||
When dealing with paths from untrusted sources, callers of these
|
When dealing with paths from untrusted sources, callers of these
|
||||||
functions should consider checking whether the returned path starts
|
functions should consider checking whether the returned path starts
|
||||||
with '/' or '(' to avoid misinterpreting an unreachable path
|
with '/' or '(' to avoid misinterpreting an unreachable path
|
||||||
|
|
Loading…
Reference in New Issue