mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-30 02:50:25 +08:00
* path.cc (symlink_info::check_shortcut): Ensure that symlink handle is closed
on successful return.
This commit is contained in:
parent
2f6f0bbeae
commit
58402a3f63
@ -1,3 +1,8 @@
|
||||
2008-12-24 Christopher Faylor <me+cygwin@cgf.cx>
|
||||
|
||||
* path.cc (symlink_info::check_shortcut): Ensure that symlink handle is
|
||||
closed on successful return.
|
||||
|
||||
2008-12-23 Christopher Faylor <me+cygwin@cgf.cx>
|
||||
|
||||
* fhandler.h (fhandler_base_setup_overlapped): Add new argument.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user