Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-12-24 19:34:38 +0300
committerChristopher Faylor <me@cgf.cx>2008-12-24 19:34:38 +0300
commit58402a3f63a23a8706c5dc58305c06b3df228170 (patch)
tree110de6b5288c44c911d1dbd282465c9a7c0c5f28 /winsup/cygwin/path.cc
parent2f6f0bbeaebc3f7f72c14076d4dd59ecf23ad3b2 (diff)
* path.cc (symlink_info::check_shortcut): Ensure that symlink handle is closed
on successful return.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 3b726c09a..5cacaba3b 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1902,11 +1902,10 @@ symlink_info::check_shortcut (HANDLE in_h)
}
if (res) /* It's a symlink. */
pflags = PATH_SYMLINK | PATH_LNK;
- return res;
out:
NtClose (h);
- return 0;
+ return res;
}
int