Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-08-23 15:04:04 +0400
committerCorinna Vinschen <corinna@vinschen.de>2010-08-23 15:04:04 +0400
commit16e1c98c1b2da660e052b64d1255fe68b8219a89 (patch)
treea85e7522393507862b45f1f9bfc5a1e43c10808a /winsup/utils/ldd.cc
parent59ecc5766c34a317e914e09bb94c894e645a3b14 (diff)
* ldd.cc (report): Drop long pathname considerations which result in
invalid path, now that this is done in cygwin_conv_path.
Diffstat (limited to 'winsup/utils/ldd.cc')
-rw-r--r--winsup/utils/ldd.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/winsup/utils/ldd.cc b/winsup/utils/ldd.cc
index 7dc8216da..073c40bcb 100644
--- a/winsup/utils/ldd.cc
+++ b/winsup/utils/ldd.cc
@@ -274,16 +274,9 @@ report (const char *in_fn, bool multiple)
print_errno_error_and_return (fn);
bool isdll;
- wchar_t fn_win_buf[len + 1];
- if (cygwin_conv_path (CCP_POSIX_TO_WIN_W, fn, fn_win_buf, len))
+ wchar_t fn_win[len + 1];
+ if (cygwin_conv_path (CCP_POSIX_TO_WIN_W, fn, fn_win, len))
print_errno_error_and_return (fn);
- wchar_t *fn_win = fn_win_buf + 4;
-
- if (wcsncmp (fn_win_buf, L"\\\\?\\UNC\\", 8) == 0)
- {
- fn_win += 2;
- *fn_win = L'\\';
- }
if (!fn || start_process (fn_win, isdll))
print_errno_error_and_return (in_fn);