diff options
author | Christopher Faylor <me@cgf.cx> | 2000-08-22 17:59:53 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-08-22 17:59:53 +0000 |
commit | e136f5c0e03a5ffc0ea0c514ca38d8b9857d047e (patch) | |
tree | e005388b094574e526deef6c929420cf663b43fb | |
parent | 6d75cb08b37c02383fa26f17f0bfe8560e5e91f9 (diff) | |
download | cygnal-e136f5c0e03a5ffc0ea0c514ca38d8b9857d047e.tar.gz cygnal-e136f5c0e03a5ffc0ea0c514ca38d8b9857d047e.tar.bz2 cygnal-e136f5c0e03a5ffc0ea0c514ca38d8b9857d047e.zip |
* path.cc (symlink_info::check): Clear error on each iteration of extension
check.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/path.cc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6e94d8bd7..46718b633 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 22 13:57:36 2000 Christopher Faylor <cgf@cygnus.com> + + * path.cc (symlink_info::check): Clear error on each iteration of + extension check. + Tue Aug 22 11:23:59 2000 Christopher Faylor <cgf@cygnus.com> * Makefile.in: Don't include '.d' file if there are none generated yet. diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 8fd042489..48da8c4c9 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -2242,7 +2242,6 @@ symlink_info::check (const char *in_path, const suffix_info *suffixes) char extbuf[MAX_PATH + 5]; const char *path = in_path; - error = 0; if (!suffixes) ext_here = NULL; else if ((known_suffix = has_suffix (in_path, suffixes)) != NULL) @@ -2258,10 +2257,12 @@ symlink_info::check (const char *in_path, const suffix_info *suffixes) is_symlink = TRUE; + error = 0; do { if (!next_suffix (ext_here, suffixes)) break; + error = 0; fileattr = GetFileAttributesA (path); if (fileattr == (DWORD) -1) { |