summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2020-09-26 16:44:44 -0400
committerKen Brown <kbrown@cornell.edu>2020-09-26 16:44:44 -0400
commit6b6dd5fede7db0fafdc09f2ced89c39adc432701 (patch)
tree5d30ff439c0b661576ca0be2f8f996cad4cf8778
parent4c49accf8997da21be19be0396b2a88f33b9f949 (diff)
downloadcygnal-6b6dd5fede7db0fafdc09f2ced89c39adc432701.tar.gz
cygnal-6b6dd5fede7db0fafdc09f2ced89c39adc432701.tar.bz2
cygnal-6b6dd5fede7db0fafdc09f2ced89c39adc432701.zip
Cygwin: check_reparse_point_target: update comment
Commit aa467e6e, "Cygwin: add AF_UNIX reparse points to path handling", changed the return values of check_reparse_point_target. Update the comment accordingly.
-rw-r--r--winsup/cygwin/path.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 1d0c38a20..638f1adce 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -2475,8 +2475,9 @@ check_reparse_point_string (PUNICODE_STRING subst)
/* Return values:
<0: Negative errno.
- 0: No symlink.
- 1: Symlink.
+ 0: Not a reparse point recognized by us.
+ >0: PATH_SYMLINK | PATH_REP for symlink or directory mount point,
+ PATH_SOCKET | PATH_REP for AF_UNIX socket.
*/
int
check_reparse_point_target (HANDLE h, bool remote, PREPARSE_DATA_BUFFER rp,