* ldd.cc (report): Drop long pathname considerations which result in

invalid path, now that this is done in cygwin_conv_path.
This commit is contained in:
Corinna Vinschen 2010-08-23 11:04:04 +00:00
parent 59ecc5766c
commit 16e1c98c1b
2 changed files with 7 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2010-08-21 Corinna Vinschen <corinna@vinschen.de>
* ldd.cc (report): Drop long pathname considerations which result in
invalid path, now that this is done in cygwin_conv_path.
2010-08-13 Corinna Vinschen <corinna@vinschen.de>
* mount.cc (from_fstab): Fix potentially fatal typo.

View File

@ -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);