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=iHCAkTdeKHGUSO6+3SqL2b5ZBLVqrylUwc/3wCh8GTUjf0jmOYHwt 3k7CRm2T6UlalUnvMwdp8dtuzy84eocDD8EtjGrN1KYN2Sn0QJt32TzGRaT3WhRO d8pzveyBjIZiBOxETsfxyowRvEK5pP9peWNI2AL5ctrIUu+m38UqcE= 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=O7wntVvWccyY1tYHqZHisKSjVaU=; b=m2/h98s3rgnXQdq6a9z+FyzDjbdF RfuSyq4XagxeF6mjwENTrkkMhZcs+31DfOEJ1RAW2ir1z6GKIZt1n2ZI+Uky22PT Nqxa594Ao+CIHdY2yti8LyBRS/LGGiu1QBz0wmC9ijDS7cKnptHk0/5aIMdb9mrk jsqw2kUsYD4+JvE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 16:39:41 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: regtool load gives access denied Message-ID: <20150203153941.GD12857@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> <20150203142847 DOT GC12857 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YToU2i3Vx8H2dn7O" Content-Disposition: inline In-Reply-To: <20150203142847.GC12857@calimero.vinschen.de> User-Agent: Mutt/1.5.23 (2014-03-12) --YToU2i3Vx8H2dn7O Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 3 15:28, Corinna Vinschen wrote: > 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 = saving: > > >=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 runni= ng in an > > > admin shell. > >=20 > > It's a bug in regtool. I'm looking into it... >=20 > 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. >=20 > 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. I just implemented a restore operation in regtool. Please note the -f option, it's really necessary sometimes (but you should always ask yourself what process might have an open handle). I created a new snapshot for testing and uploaded it to https://cygwin.com/snapshots/ Please test this ASAP. I'm planning to release 1.7.34 this week, preferredly tomorrow. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --YToU2i3Vx8H2dn7O Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJU0Ou9AAoJEPU2Bp2uRE+gVsoP+QGKecFIoRj4fIc+DwkU/Kyb LXCUwATDjjSG2CZCfbF+msQvpp3bXdBG/TSTgY/VhWWh9yz4eLuRoOIB6/TtV61U nvFHftBYjXANS2bAyHFjHm1RZmiS2b2WbHvabpdGopP+F4/CAMM9uryUWtv9dHwx uL6cppDGo5C+8ceylUTw2RocUTK7TEVLtobs9Xeto/1ncbXX0PqmuBgsSIx/DsqI tRL4fMypXXpgm0YLnynxeGMJzRksQJ30CaCpwqAqAKcqfmmx9bBVPUGyoED83BEG K26tfceavR/euYtoVssyVUCdyYpaXEJOk+9y0pwgeyWrBXXI+djzX5Cs/cQh4WO/ gajVOtz8l02AMrgi420XJ6nH/uKKLTpy9leaPMCINGZqWXCCm00W1UhkzvJ4StUP q5mNERP7ZXcdtx/ogtFl/KxzSUOLqTdy52Xet9T7TPOZ7eA/mr9Xofh5lpAzwkbY TLUIH3JU3ay43iI5d1iEMMX0ISwf6PTZYfdhyoBkX8iU31qyXojNW+ywsRsOhZaj 5VBFR6Xss9qy+1GROGlczQK38HoVJT+DXufAMhX2RvFJCrM0y+jJKds+ueo1gQin yQo/WI01XQ1hazM3PY42BJklQMTYYCiMuFfgJSK8kzMx9UFKObkg7uhJUEpoXSUp /uc/nogk3kjZWvOCrpEU =m+7e -----END PGP SIGNATURE----- --YToU2i3Vx8H2dn7O--