* cygpath.cc (do_pathconv): when -p option is given, generate wide
path without long path prefixing. * wide_path.h (wide_path::wide_path): Allow extra bool parameter to specify whether or not performing Windows long path prefixing.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* cygpath.cc -- convert pathnames between Windows and Unix format
|
||||
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
|
||||
2009, 2010, 2011, 2012 Red Hat, Inc.
|
||||
2009, 2010, 2011, 2012, 2013 Red Hat, Inc.
|
||||
|
||||
This file is part of Cygwin.
|
||||
|
||||
@@ -675,7 +675,7 @@ do_pathconv (char *filename)
|
||||
{
|
||||
if (unix_flag)
|
||||
{
|
||||
wide_path wpath (filename);
|
||||
wide_path wpath (filename, false);
|
||||
err = cygwin_conv_path_list (conv_func, wpath, buf, len);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user