diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2017-10-18 16:18:12 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-10-18 16:18:12 +0200 |
commit | 3dda58f1573a7e216f4656a3248252aea4f30593 (patch) | |
tree | 1a3cf3020f3208a10f89bcf80ff02e5bc3c5955d | |
parent | 9ac4c0325fba621cdb5bf503b2521b4edd35086f (diff) | |
download | cygnal-3dda58f1573a7e216f4656a3248252aea4f30593.tar.gz cygnal-3dda58f1573a7e216f4656a3248252aea4f30593.tar.bz2 cygnal-3dda58f1573a7e216f4656a3248252aea4f30593.zip |
cygwin: unlink: improve debug messages in try_to_bin
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r-- | winsup/cygwin/syscalls.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 96fb6f39f..e64b01797 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -520,6 +520,8 @@ try_to_bin (path_conv &pc, HANDLE &fh, ACCESS_MASK access, ULONG flags) bin_stat = dir_not_empty; goto out; } + debug_printf ("Renaming dir %S back to %S failed, status = %y", + &recycler, pc.get_nt_native_path (), status); } /* In case of success, restore R/O attribute to accommodate hardlinks. That leaves potentially hardlinks around with the R/O bit suddenly @@ -548,7 +550,8 @@ try_to_bin (path_conv &pc, HANDLE &fh, ACCESS_MASK access, ULONG flags) NULL, 0); if (!NT_SUCCESS (status)) { - debug_printf ("Creating file for overwriting failed, status = %y", + debug_printf ("Creating file %S for overwriting %S (%S) failed, " + "status = %y", &fname, &recycler, pc.get_nt_native_path (), status); goto out; } @@ -556,7 +559,8 @@ try_to_bin (path_conv &pc, HANDLE &fh, ACCESS_MASK access, ULONG flags) FileRenameInformation); NtClose (tmp_fh); if (!NT_SUCCESS (status)) - debug_printf ("Overwriting with another file failed, status = %y", status); + debug_printf ("Overwriting %S (%S) with %S failed, status = %y", + &recycler, pc.get_nt_native_path (), &fname, status); out: if (rootdir) |