This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: regtool load gives access denied


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.


Corinna

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

Attachment: pgpakUdhk0DzA.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]