prefix introduced by previous patch.
+2010-02-22 Corinna Vinschen <corinna@vinschen.de>
+
+ * cygpath.cc (do_pathconv): Fix erroneously printing native NT path
+ prefix introduced by previous patch.
+
2010-02-22 Corinna Vinschen <corinna@vinschen.de>
* locale.cc (lc_time_names): Add "date_fmt" entry.
wchar_t *buf2 = NULL;
DWORD len;
ssize_t err;
+ bool print_tmp = false;
cygwin_conv_path_t conv_func =
(unix_flag ? CCP_WIN_A_TO_POSIX
: (path_flag ? CCP_POSIX_TO_WIN_A
tmp += len;
if (len == 6)
*tmp = '\\';
+ print_tmp = true;
}
}
if (mixed_flag)
}
}
- puts (buf);
+ puts (print_tmp ? tmp : buf);
if (buf2)
free (buf2);
if (buf)