delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/05/12/12:51:54

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:in-reply-to:references:date:subject
:from:to:mime-version:content-type:content-transfer-encoding; q=
dns; s=default; b=L4o0DdetaM1JM26hyHljT/6YMiq6Kilr0WbpYlHDO+isGN
27m711ags1dTweOlZNTxmA5g3w0fQm+/3n3hnFx9EqpPqfi62pCkoESnuRB7pjH8
Rbw/vH5Dp2Ew87+A9dgyhRIsRURAYHoKYi5Yh3Q3fHF2pQtfyPzDs3EtS0CFU=
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:in-reply-to:references:date:subject
:from:to:mime-version:content-type:content-transfer-encoding; s=
default; bh=V9PS3qMNSSxklDQqYDTdDFgZxdc=; b=JDRLydqLMQUZifdV9oTU
LPMvTRxmP8GSwej51x3rrOBlT+0Cvt7KO4cYFxrO3nyNDTOMkVHqSiPxIAe3W31U
UD1hZuUQZDeyaF66PT/3gmjLnBlvz4zXL/4u1MW58oE7QEgSIPNOH5B8+8vO0ZxT
1Hjo+gWEWMSVsEZfJh2jiVQ=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_50,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: smtp-vbr9.xs4all.nl
Message-ID: <ec5e4625f2bd19a7cc13bf9374bd30f3.squirrel@webmail.xs4all.nl>
In-Reply-To: <635595705.20140512163815@yandex.ru>
References: <849f1f5420ebf77d7a591d6c9b6bfa4b DOT squirrel AT webmail DOT xs4all DOT nl> <536E339A DOT 6030200 AT breisch DOT org> <6f9d939cc604437def11828435a67f96 DOT squirrel AT webmail DOT xs4all DOT nl> <635595705 DOT 20140512163815 AT yandex DOT ru>
Date: Mon, 12 May 2014 18:51:33 +0200
Subject: Re: Baffled: is it Cygwin (64-bits) or Windows that causes the invocation of regedit (from bash) to fail?
From: "Houder" <houder AT xs4all DOT nl>
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.18
MIME-Version: 1.0
X-IsSubscribed: yes

Hi Andrey,

>> Another issue you might run into ...
>
>> I was surprised to find, that 32-bits bash reported /drv/c/Windows/regedit.exe as a different file,
>> compared to what 64-bits bash reported.
>
> No surprise here. To reach 64-bit regedit (and other utilities) from 32-bit
> application, you have to address it through %SystemRoot%\Sysnative path.

Hold on. I wrote '/drv/c/Windows/regedit.exe' (irrespective of its bit-ness).

BUT! See bottom of this message.

>
>> Note: 32-bits cmd and 64-bits cmd report c:/Windows/regedit.exe as the SAME
>> file. Which, of course, made me wonder ...
>
> I wonder, how do you check that?

C:\Users\Henri> dir /tc /4 c:\Windows\regedit.exe   # using 32-bits cmd
 Volume in drive C has no label.
 Volume Serial Number is 12F0-A5C0

 Directory of c:\Windows

14-07-2009  01:27           427.008 regedit.exe

C:\Users\Henri> dir /tc /4 c:\Windows\regedit.exe   # using 64-bits cmd
 Volume in drive C has no label.
 Volume Serial Number is 12F0-A5C0

 Directory of c:\Windows

14-07-2009  01:27           427.008 regedit.exe

Size and date/time of creation are the same.

>> Searching the internet again, I got the understanding, that there has been
>> been a time in which a request for c:/Windows/regedit.exe was redirected to
>> c:/Windows/SysWOW64/regedit.exe (in case of a 32-bits application).
>
>> As far as I can tell, this redirection no longer applies (meaning, as far as
>> can tell, MS changed its mind here).
>
> How did you found that?

For instance, here
    http://msdn.microsoft.com/en-us/library/windows/desktop/aa384187%28v=vs.85%29.aspx

it said
    Access to %windir%\regedit.exe is redirected to %windir%\SysWOW64\regedit.exe (in case of
    32-bits application)

The current situation on my W7 does NOT agree with the above statement.

Henri

-----
Here it shows that 32-bits Cygwin "sees" (i.c. ls, stat) a different file at /drv/c/Windows ...

Using my 32-bits Cygwin installation (DOS-box, bash) at e:/Cygwin

@@ ls -l /drv/c/Windows/regedit
-rwxrwx---+ 2 TrustedInstaller TrustedInstaller 398336 Jul 14  2009 /drv/c/Windows/regedit
@@ stat /drv/c/Windows/regedit
  File: `/drv/c/Windows/regedit'
  Size: 398336          Blocks: 392        IO Block: 65536  regular file
Device: 12f0a5c0h/317760960d    Inode: 281474976748756  Links: 2
Access: (0770/-rwxrwx---)  Uid: (4294967294/TrustedInstaller)   Gid: (4294967294/TrustedInstaller)
Access: 2009-07-14 01:17:08.803392200 +0200
Modify: 2009-07-14 03:14:30.457000000 +0200
Change: 2014-05-11 18:34:40.326326000 +0200
 Birth: 2009-07-14 01:17:08.803392200 +0200

Using my 64-bits Cygwin installation (DOS-box, bash) at e:/Cygwin64:

64-@@ ls -l /drv/c/Windows/regedit
-rwxrwx---+ 2 TrustedInstaller TrustedInstaller 427008 Jul 14  2009 /drv/c/Windows/regedit
64-@@ stat /drv/c/Windows/regedit
  File: `/drv/c/Windows/regedit'
  Size: 427008          Blocks: 420        IO Block: 65536  regular file
Device: 12f0a5c0h/317760960d    Inode: 281474976726615  Links: 2
Access: (0770/-rwxrwx---)  Uid: (4294967294/TrustedInstaller)   Gid: (4294967294/TrustedInstaller)
Access: 2009-07-14 01:27:10.125698800 +0200
Modify: 2009-07-14 03:39:29.639000000 +0200
Change: 2014-05-11 18:35:26.892407800 +0200
 Birth: 2009-07-14 01:27:10.125698800 +0200

Note:
 - 32-bits Cygwin invokes 64-bits regedit in case of /drv/c/Windows/regedit
   (yes, different from the one it "sees" (i.c. ls, stat) !!!!!
 - 32-bits Cygwin invokes 32-bits regedit in case of /drv/c/Windows/SysWOW64/regedit
 - in case of /drv/c/Windows/System32/regedit: dito
 - /drv/c/Windows/SysNative/regedit: does NOT exist!
   (the 64-bits version only lives in c:/Windows)

=====


--
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