public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: check_reparse_point_target: update comment
@ 2020-09-26 20:49 Ken Brown
  0 siblings, 0 replies; only message in thread
From: Ken Brown @ 2020-09-26 20:49 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6b6dd5fede7db0fafdc09f2ced89c39adc432701

commit 6b6dd5fede7db0fafdc09f2ced89c39adc432701
Author: Ken Brown <kbrown@cornell.edu>
Date:   Sat Sep 26 16:44:44 2020 -0400

    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.

Diff:
---
 winsup/cygwin/path.cc | 5 +++--
 1 file 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,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-26 20:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-26 20:49 [newlib-cygwin] Cygwin: check_reparse_point_target: update comment Ken Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).