delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/09/28/01:55:41

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=g3FKfsYyJLfp8nl25n0yE2wfx3iadWTvWZ7fvahK2hD
ZvEqEINxIw4QYqOecBvWEuhAm6L1I9I76z5lWmtpfHmyExWmX85hAX+wCrWir93L
rNoJ1ll+baTF4k4afCLvHgdl+opsq+9FhyWQH8p2re4lWhSPFOe3qvQUX2Wdswq4
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=jV/ks5Je7cj/W5zvB8lwPTTJ9hc=; b=O/bP6XpdzjxF/xdrU
EnPIXR+oRvpXzQKoNoxp4SHUjUyj4QNQbBM/559v45k9R5Rq15WH7+DAgDTml4J/
FZtgj5Dy2J2aJY8smoClPsQDNSi05PSX6JGcWTjayGLPtbaP/xb8SGFNT0xjtqIG
YbmQPW6HZ4cbDfFQoO6yx/cBrs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_2 autolearn=ham version=3.3.2 spammy=H*F:U*cygwin, retry, HContent-Transfer-Encoding:8bit
X-HELO: Ishtar.sc.tlinx.org
Message-ID: <5BADC248.7050009@tlinx.org>
Date: Thu, 27 Sep 2018 22:55:20 -0700
From: L A Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, fergus AT bonhard DOT uklinux DOT net
Subject: Re: Creation of weird WINDOWS-related (sub)directories
References: <000301d454e2$c5102a20$4f307e60$@bonhard.uklinux.net> <ac423f75-7d9a-d5b8-6bf7-b7ef4b7d9fe3 AT t-online DOT de>
In-Reply-To: <ac423f75-7d9a-d5b8-6bf7-b7ef4b7d9fe3@t-online.de>
X-IsSubscribed: yes


On 9/25/2018 9:53 AM, Hans-Bernhard Bröker wrote:
> Am 25.09.2018 um 17:16 schrieb Fergus:
> 
>> Unintentionally I have confounded the discussion. The directory named
>> "consoleX" is my home-grown Cygwin root directory.
>> (Others' preferred locationname might be "cygwin" or "mycygwin" or
>> whatever.)
> 
> That does not explain anything, actually.  Cygwin's own root directory 
> is always '/'.  The one you speak of would be the windows-side 
> installation root directory (c:\cygwin or c:\cygwin64 by default), but 
> that would never show up like that from inside cygwin.  I.e. while you 
> do have
----
	So the root of the cygwin drive is '/', so what would happen
if a cygwin program tried to expand a windows path, with a windows
variable in it, like '%SystemDrive%'....   Seems to me that
whatever that program is, it *IS* running under cygwin and using
a windows path with the win-var unexpanded. 

	If I understand correctly, the weird dir is at absolute
(from windows C:\) path:
C:/consoleX/%SystemDrive%/ProgramData/Microsoft/Windows/Caches
or, inside cygwin, you see:
/%SystemDrive%/ProgramData/Microsoft/Windows/Caches

yes?  Doesn't matter _that_ much, I'd just work
around it by moving it aside and creating a symlink in windows
from %SystemDrive% => C:\.  Hopefully whatever is creating
it won't delete the symlink.  If it does, you can retry
the command specifying /j to make a windows junction.
(in cmd.exe, you should be able to type mklink /h for help).

Note, in windows, mklink, the order is mklink <to> <from> (sorta
backwards from normal *nix conventions).

If you were curious and a bit daring, 
you could put an empty %systemdrive% directory 
there instead of the one it was using and make it read-only & set
the system attribute.  Then whatever is trying to write into
it should fail and hopefully you'll see an error message...

to set read-only and 
system with the attrib command try
attrib +r +s <filename>

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

- Raw text -


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