From 376b1777498dcafc53d1d99d1a838030533c3361 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 27 Nov 2013 14:48:27 +0000 Subject: [PATCH] * syscalls.cc (try_to_bin): Enhance debug output in case reopen fails. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/syscalls.cc | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 90b121e93..615596280 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2013-11-27 Corinna Vinschen + + * syscalls.cc (try_to_bin): Enhance debug output in case reopen fails. + 2013-11-27 Corinna Vinschen * syscalls.cc (try_to_bin): Drop fh_dup, reuse tmp_fh instead. diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index c5e8c42df..8769eb582 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -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);