delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/03/09:37:22

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=vtHtvhS8ZIdIKpKV9qL3WF40rX1ZETL0OB1j5n+/ASuGsWSX9iGze
UJpzVaGfNc/5usBJg7OdrzT+etIBz/q6pfkGskRpDqNJ7PKYCxVB2U0EHzUg3b9j
bEnNGvBH8Z27/FpfJY+AcSgVv+23o5QSYhCgkcSdMadN4waYXTImMQ=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=ku1DjnJxCAcOwO1piLKQ4VwYrFM=; b=CNeoj+9IQkxSfppRgIzSslOfmYk8
Ycjo85mkkRvG0rZmIIAlzKl8VeFvRfLAOsCkp0I4QXQYzmRDahd6ITsAoyHdwq0R
313Qjd3PCQRnL9NMK6rQfgAn+e5S4RXWZP6UPA3mH7XvAhEvue5bteW4BsGH6UI8
nk1r2fhmmav7EvQ=
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=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Tue, 3 Feb 2015 15:28:47 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: regtool load gives access denied
Message-ID: <20150203142847.GC12857@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <6d81da1hr5jf15mrm5acdjcb8cev4t3t21 AT 4ax DOT com> <20150203141144 DOT GB12857 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20150203141144.GB12857@calimero.vinschen.de>
User-Agent: Mutt/1.5.23 (2014-03-12)

--ZwgA9U+XZDXt4+m+
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb  3 15:11, Corinna Vinschen wrote:
> On Feb  3 05:33, Andrew Schulman wrote:
> > I want to back up and restore some of my registry settings.  I start a =
shell
> > with "Run as administrator", and regtool save seems to work fine for sa=
ving:
> >=20
> > $ regtool save /HKCU/Software/SimonTatham/PuTTY/Sessions PuTTY.reg
> > $=20
> >=20
> > However when I try to reload the saved settings, I get access denied:
> >=20
> > $ regtool load /HKCU/Software/SimonTatham/PuTTY/Sessions PuTTY.reg
> > Error (5): Access is denied.
> >=20
> > Does anyone know why this fails?  I'm puzzled by this since I'm running=
 in an
> > admin shell.
>=20
> It's a bug in regtool.  I'm looking into it...

To be a bit more exact, the "load" operation is *not* the mirror
operation to "save".  In fact, "load" loads a full registry hive of a
user into the registry, and its mirror operation is "unload", which
unloads a user hive from the registry.

The bug here is that "save" has no mirror operation in regtool at all.
It's a bit puzzeling.  There should have been a "restore" operation but
nobody ever implemented it.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--ZwgA9U+XZDXt4+m+
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJU0NsfAAoJEPU2Bp2uRE+gE8wP/3JhpL7Zio4azdK0g7katzWb
QgKZ9wENZSwIU7jKUf4vHnZFqSPZdt03O9e4DBLS1sYvpzy9x275YxmDnW9orpV4
/O8oWJMv+HYLJ4hSvtSTyj5fX8S+jMswREW2IC8pNAvsmKzT09opNIWwSJ9E2lMD
Q81FrCZ4Y+PQcpDk//4EOuxhQ/X29Cn8ivdLunKwwHch+fgvIPgc1X6LMvNFhM4E
y+AjPmyWBp6MUVywLnsh7u1e1He2fJBfHI2lfMoZfSxCUZTvBZrL8wTQOhyQnuus
gE9DzoRuQtp8OfN0FLw+XFWUpriqZztITsKdRjZaMIkMRX0GSorpd5hNSc3HFFUd
00dPQetNk8mx1zNjmt6qnfKwKWj4TxICHq5MnDtXXhNQTN0+fqEnIZiGLFwKaykx
gvSLbkE+JNu6OCSMIBN3L/MNVmXby87+4dTbWBH29wgK9fUOQQPb7/Zu65Zbw7DE
DVjpMiZ3oe++mgWDBp8QC6wrYWfQEkJY3qlOzAbw8xsslRTyGvmsfCpXhqCzJSHk
lLdcBpViZk+TuHqjS4bYDFIBNzh1WpKwtiopp/LfRWrK2tjMh29nUVcuX8Ms/vH+
gZJJ92i7AyQR40xgpwnSWscYsCtA9BXgf6GvSYU7PCH7eyqZ2Hd4pmyTsA5Gj6fo
Is3NmzkXjpJC/jEy3E3T
=6+j4
-----END PGP SIGNATURE-----

--ZwgA9U+XZDXt4+m+--

- Raw text -


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