public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Ken Brown <kbrown@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: check_reparse_point_target: update comment
Date: Sat, 26 Sep 2020 20:49:29 +0000 (GMT)	[thread overview]
Message-ID: <20200926204929.DDFF43857C40@sourceware.org> (raw)

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,


                 reply	other threads:[~2020-09-26 20:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200926204929.DDFF43857C40@sourceware.org \
    --to=kbrown@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).