From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2210) id DDFF43857C40; Sat, 26 Sep 2020 20:49:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DDFF43857C40 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Ken Brown To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: check_reparse_point_target: update comment X-Act-Checkin: newlib-cygwin X-Git-Author: Ken Brown X-Git-Refname: refs/heads/master X-Git-Oldrev: 4c49accf8997da21be19be0396b2a88f33b9f949 X-Git-Newrev: 6b6dd5fede7db0fafdc09f2ced89c39adc432701 Message-Id: <20200926204929.DDFF43857C40@sourceware.org> Date: Sat, 26 Sep 2020 20:49:29 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Sep 2020 20:49:30 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6b6dd5fede7db0fafdc09f2ced89c39adc432701 commit 6b6dd5fede7db0fafdc09f2ced89c39adc432701 Author: Ken Brown 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,