public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [Patch] regtool - Handle keys with only one subkey
@ 2001-07-14 11:08 Chris Genly
  2001-07-15  4:31 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Genly @ 2001-07-14 11:08 UTC (permalink / raw)
  To: cygwin

I was writing a small installer script using bash and regtool.  I ran in to a bug in regtool which
prevented it from creating top level keys.  Below is the change log and unified diff patch.  I do
not subscribe to this list, so send email directly if you wish to talk to me about the change.

cygwin is amazing.  I'm glad to make a tiny contribution.


2001-07-14    Chris Genly   <chgenly@alum.mit.edu>

* regtool.cc (find_key): Handle keys with only one subkey.  For example /root/.roapi

--- regtool.cc.orig	Mon Jan 29 18:36:18 2001
+++ regtool.cc	Fri Jul 13 20:59:46 2001
@@ -221,11 +221,15 @@ find_key (int howmanyparts, REGSAM acces
 	e--;
       if (*e != '\\')
 	{
-	  fprintf (stderr, "Invalid key\n");
-	  exit (1);
+          key = wkprefixes[i].key;
+	  value = n;
+          return;
+	}
+      else
+        {
+          *e = 0;
+          value = e + 1;
 	}
-      *e = 0;
-      value = e + 1;
     }
   if (n[0] == 0)
     {


=====
--------------------------------------------------------
Chris Genly
Email: chgenly@alum.mit.edu
Speech, Distributed Objects and Renewable energy for all.

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch] regtool - Handle keys with only one subkey
  2001-07-14 11:08 [Patch] regtool - Handle keys with only one subkey Chris Genly
@ 2001-07-15  4:31 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2001-07-15  4:31 UTC (permalink / raw)
  To: cygwin

On Sat, Jul 14, 2001 at 11:08:01AM -0700, Chris Genly wrote:
> I was writing a small installer script using bash and regtool.  I ran in to a bug in regtool which
> prevented it from creating top level keys.  Below is the change log and unified diff patch.  I do
> not subscribe to this list, so send email directly if you wish to talk to me about the change.
> 
> cygwin is amazing.  I'm glad to make a tiny contribution.

Thanks. Applied.

Corinna

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

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-07-15  4:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-14 11:08 [Patch] regtool - Handle keys with only one subkey Chris Genly
2001-07-15  4:31 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).