https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8cc55d819bb78a775e3bab3359ca4d0510e9f16a
commit 8cc55d819bb78a775e3bab3359ca4d0510e9f16a Author: Corinna Vinschen <cori...@vinschen.de> AuthorDate: Fri Feb 21 10:51:51 2025 +0100 Commit: Corinna Vinschen <cori...@vinschen.de> CommitDate: Fri Feb 21 10:51:51 2025 +0100 Cygwin: fhandler_netdrive::exists: fix new debug statement The debug statement was wrong twice: Not only was it in the wrong spot, it was also supposed to print the share name and missed to add said argument. Fixes: df307349a09e ("Cygwin: fhandler_netdrive::exists: add debug statement") Signed-off-by: Corinna Vinschen <cori...@vinschen.de> Diff: --- winsup/cygwin/fhandler/netdrive.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/winsup/cygwin/fhandler/netdrive.cc b/winsup/cygwin/fhandler/netdrive.cc index dd27754c0a36..08302d20ef74 100644 --- a/winsup/cygwin/fhandler/netdrive.cc +++ b/winsup/cygwin/fhandler/netdrive.cc @@ -459,13 +459,14 @@ fhandler_netdrive::exists () doesn't exist, or about 8 secs if DNS is unavailable. */ sys_mbstowcs (name, CYG_MAX_PATH, get_name ()); ret = GetAddrInfoW (name + 2, NULL, NULL, &ai); - if (!ret) + if (ret) { - debug_printf ("GetAddrInfoW(%W) returned %d", ret); - FreeAddrInfoW (ai); + debug_printf ("GetAddrInfoW(%W) returned %d", name + 2, ret); + return virt_none; } - return ret ? virt_none : virt_directory; + FreeAddrInfoW (ai); + return virt_directory; } fhandler_netdrive::fhandler_netdrive ():