]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: path_conv: add PC_SYM_NOFOLLOW_DIR flag
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 28 Jan 2020 16:40:40 +0000 (17:40 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 28 Jan 2020 16:40:40 +0000 (17:40 +0100)
commit26425142ce9e8981e9f97e7d50e632c4f9ee9a03
treef1709b7ead70f15aef6bee742b6a4478e0bbfac4
parent2caaa810a39075cbf0eb857459a2eef95bf4463f
Cygwin: path_conv: add PC_SYM_NOFOLLOW_DIR flag

Usually a trailing slash requires to follow an existing symlink,
even with PC_SYM_NOFOLLOW.  The reason is that "foo/" is equivalent
to "foo/." so the symlink is in fact not the last path component,
"." is.  This is default for almost all scenarios.

PC_SYM_NOFOLLOW_DIR now allows the caller to request not to
follow the symlink even if a trailing slash is given.  This can
be used in callers to perform certain functions Linux-compatible.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/path.cc
winsup/cygwin/path.h
This page took 0.028655 seconds and 5 git commands to generate.