Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com From: Chris Faylor Date: Wed, 13 Oct 1999 11:20:30 -0400 To: Kazuhiro Fujieda Cc: cygwin-developers AT sourceware DOT cygnus DOT com Subject: Re: readlink() bug. Message-ID: <19991013112030.A984@cygnus.com> Mail-Followup-To: Kazuhiro Fujieda , cygwin-developers AT sourceware DOT cygnus DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: ; from Kazuhiro Fujieda on Wed, Oct 13, 1999 at 09:23:02AM +0900 Applied. Thanks. -chris On Wed, Oct 13, 1999 at 09:23:02AM +0900, Kazuhiro Fujieda wrote: >readlink() should return ENOENT and not EINVAL when it can't >find the target symlink. > >ChangeLog: >Wed Oct 13 09:02:32 1999 Kazuhiro Fujieda > * path.cc (readlink): Return errno correctly when it can't find > the target symlink. > >--- path.cc- Wed Oct 13 09:02:02 1999 >+++ path.cc Wed Oct 13 09:02:32 1999 >@@ -2224,6 +2224,9 @@ readlink (const char *path, char *buf, i > return -1; > } > >+ if (pathbuf.fileattr == (DWORD) -1) >+ return -1; >+ > if (!pathbuf.issymlink ()) > { > set_errno (EINVAL);