[PATCH] New '--install-type' option for cygcheck?

Corinna Vinschen cygwin-patches@cygwin.com
Thu Mar 27 09:46:00 GMT 2003


On Thu, Mar 27, 2003 at 08:00:24AM -0000, Elfyn McBratney wrote:
> > I've been working on a new option for `cygcheck' that checks who Cygwin
> was
> > installed for. This could be used when users on the mailing list have
> > problems running services when the installation was done for "Just Me",
> > executing files in the same situation etc. Would this be a desirable
> > feature? Yes/no...patch attached :-)
> 
> Sorry, forgot this...
> 
> 2003-03-27  Elfyn McBratney  <elfyn@exposure.org.uk>
> 
> * utils/cygcheck.cc (longopts): Add install-type option.
> (opts): Add 'i' install-type option.
> (check_install_type): New function.
> (main): Accommodate new install_type option.

Well, the problem is that you're checking in HKLM first.  You should
check the HKCU key first since this would override the existing same
key in HKLM.  Probably it would be nice(tm) if cygcheck reports
always both keys if they both exist and print some warning about this
(hmm, I'm musing if it makes sense to print a suggestion to drop the
HKCU key in that case...)

Corinna

PS: Your ChangeLog is incorrect (think "tabs") ;-)

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-patches mailing list