* path.cc (symlink_info::check_shortcut): Ensure that symlink handle is closed
on successful return.
This commit is contained in:
		| @@ -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> | 2008-12-23  Christopher Faylor  <me+cygwin@cgf.cx> | ||||||
|  |  | ||||||
| 	* fhandler.h (fhandler_base_setup_overlapped): Add new argument. | 	* 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.  */ |   if (res) /* It's a symlink.  */ | ||||||
|     pflags = PATH_SYMLINK | PATH_LNK; |     pflags = PATH_SYMLINK | PATH_LNK; | ||||||
|   return res; |  | ||||||
|  |  | ||||||
| out: | out: | ||||||
|   NtClose (h); |   NtClose (h); | ||||||
|   return 0; |   return res; | ||||||
| } | } | ||||||
|  |  | ||||||
| int | int | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user