delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/12/10/18:32:35

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BANWZUr1343005
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4BANWZUr1343005
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=JoqgaDQq
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 876943857BAF
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1733873553;
bh=KQuw6tkAm84qhfnMUampEmjszZ1CjRtQqbgcOFw0uuk=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=JoqgaDQq9LwY1b5anaRF+921bvWQ857rcRuTS8bfkLmn7kydfMGrNfYVXE6pRatVj
44EogCRWrcBG9kp1XrRjCOD5MwEGTHSEl37RF7l64XXCzvKqX2YUXn5db0AISqN49l
XdqPrTXOHYgczekzE76b/LCSeJrGoo9pZWziayYM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A01693858423
Date: Wed, 11 Dec 2024 00:31:29 +0100
To: cygwin AT cygwin DOT com
Subject: Re: cygpath and unc paths
Message-ID: <Z1jPUcRyRTJ3oN8Z@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <ee626000-a159-4482-a897-da725f02b28c AT kircheis DOT it>
MIME-Version: 1.0
In-Reply-To: <ee626000-a159-4482-a897-da725f02b28c@kircheis.it>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019