X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D67F13892002 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tlinx.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cygwin AT tlinx DOT org Message-ID: <5FA4DF9D.4060209@tlinx.org> Date: Thu, 05 Nov 2020 21:31:09 -0800 From: L A Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: Michael Soegtrop Subject: Re: Strange paths in NTFS reparse points created by Cygwin Setup for e.g. TTF fonts References: <245e2446-8c1e-cbaa-a4ad-215d7e766274 DOT ref AT yahoo DOT de> <245e2446-8c1e-cbaa-a4ad-215d7e766274 AT yahoo DOT de> In-Reply-To: <245e2446-8c1e-cbaa-a4ad-215d7e766274@yahoo.de> X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cygwin AT cygwin DOT com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Cygwin" On 2020/11/05 13:41, Michael Soegtrop via Cygwin wrote: > I wonder if the path "/mnt/c/Windows/Fonts/wingding.ttf" is something > which should be written into a NTFS reparse point by cygwin setup. > Probably not - it looks like a cygwin path and it is understandable that > this confuses NTFS. > ==== Uh....except that "/mnt/c/Windows/Fonts/wingding.ttf" is a valid NT pathname (file and reg). For that matter, "/mnt/\x00\x01\x04" is a valid NT pathname -- how, why?: NT uses a 'count' hidden before the string, so any character is valid. However, the above is not universally true in 'Windows' where some system libraries enforce using backslash as the separator. I'm guessing you get some permission denied messages when you try to delete some fonts. This can happen in 2 cases: 1) if you try to delete the file in cygwin or 2), if some program hardlinked the font to the same in the windows directory instead of symlinking it. With both, it comes down to your delete command trying to delete (for example) a font that is linked into the /windows/fonts dir and some program (or lib) already has it open. Generally, you can't delete *open* files in Windows. In windows, an open will lock some range of bytes on the disk. Windows "lock"s are locks on byte ranges, "on disk" that windows won't let you write to, move or delete while someone has that file open. -- 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