* syscalls.cc (try_to_bin): Enhance debug output in case reopen fails.

This commit is contained in:
Corinna Vinschen 2013-11-27 14:48:27 +00:00
parent 1aaa128794
commit 376b177749
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2013-11-27 Corinna Vinschen <corinna@vinschen.de>
* syscalls.cc (try_to_bin): Enhance debug output in case reopen fails.
2013-11-27 Corinna Vinschen <corinna@vinschen.de>
* syscalls.cc (try_to_bin): Drop fh_dup, reuse tmp_fh instead.

View File

@ -285,7 +285,8 @@ try_to_bin (path_conv &pc, HANDLE &fh, ACCESS_MASK access, ULONG flags)
status = NtOpenFile (&tmp_fh, access, &attr, &io, FILE_SHARE_VALID_FLAGS,
flags);
if (!NT_SUCCESS (status))
debug_printf ("NtOpenFile (reopen) failed, status = %y", status);
debug_printf ("NtOpenFile (%S) for reopening caseinsensitive failed, "
"status = %y", pc.get_nt_native_path (), status);
else
{
NtClose (fh);