diff options
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index ae587adb1..bb439c72d 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -282,8 +282,7 @@ path_conv::path_conv (const char *src, symlink_follow follow_mode, if (component == 0) { fileattr = attr; - if (follow_mode == SYMLINK_CONTENTS) - goto out; + goto fillin; } goto out; // file found } @@ -300,7 +299,7 @@ path_conv::path_conv (const char *src, symlink_follow follow_mode, fileattr = attr; if (follow_mode == SYMLINK_CONTENTS) strcpy (path, sym_buf); - goto found_symlink; + goto fillin; } break; } @@ -364,7 +363,7 @@ path_conv::path_conv (const char *src, symlink_follow follow_mode, } } -found_symlink: +fillin: if (*sym_buf) { known_suffix = strchr (this->path, '\0'); |