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.
2010-02-19 Christopher Faylor <me+cygwin@cgf.cx>
#include <ddk/ntifs.h>
#include "wide_path.h"
-static const char version[] = "$Revision: 1.60 $";
+static const char version[] = "$Revision: 1.61 $";
static char *prog_name;
static char *file_arg, *output_arg;
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)