regtool load gives access denied

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Feb 3 15:39:00 GMT 2015


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:
> > > 
> > > $ regtool save /HKCU/Software/SimonTatham/PuTTY/Sessions PuTTY.reg
> > > $ 
> > > 
> > > However when I try to reload the saved settings, I get access denied:
> > > 
> > > $ regtool load /HKCU/Software/SimonTatham/PuTTY/Sessions PuTTY.reg
> > > Error (5): Access is denied.
> > > 
> > > Does anyone know why this fails?  I'm puzzled by this since I'm running in an
> > > admin shell.
> > 
> > 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.

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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150203/d781c3e4/attachment.sig>


More information about the Cygwin mailing list