On Dec  6 13:23, Federico Kircheis via Cygwin wrote:
> Hello,
> 
> was it considered to add a flag to cygpath to output a path in unc format?
> 
> 
> For example, the folder
> 
> C:\test.
> 
> cannot be accessed from many Windows applications (powershell and cmd
> included) because of the trailing dot, while cygwin has no issue creating,
> accessing and deleting such files/folders.
> 
> Using an unc path
> 
> \\?\C:\test.
> 
> solves the issue for some programs, but cygpath currently misses an option
> for creating such path.

It took a while to find the correct name for the prefix, because it's
not officially used in MSDN documentation.  An UNC path is actually
a path in the style 

  \\server\share\path\to\file

so "UNC path" is just a path starting with two backslashes and the
serve name.

Paths starting with the \\?\ prefix are called "root local" paths.
The name stems from the fact that paths starting with \\?\ are
relative to the root directory in the NT namespace.

For the details, see
https://googleprojectzero.blogspot.com/2016/02/the-definitive-guide-on-win32-to-nt.html

So I added an option to cygpath, -r or --root-local, to be used with
the -w option in the main branch.

Please give the cygwin-3.6.0-0.284.ga0527e37869e test build a try.
It should be built and uploaded in an hour or two.


Thanks,
Corinna

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to