From d4bf02aa8fded97e99c62522bb779752ebb5314b Mon Sep 17 00:00:00 2001 From: cgf Date: Thu, 28 Jun 2001 02:46:11 +0000 Subject: [PATCH] * regtool.cc (find_key): Revert previous change. --- winsup/utils/ChangeLog | 4 ++++ winsup/utils/regtool.cc | 11 ++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 76ff4d4e6f..77fa244efc 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,7 @@ +Wed Jun 27 22:46:10 2001 Christopher Faylor + + * regtool.cc (find_key): Revert previous change. + Wed Jun 27 13:37:41 2001 Keith Starsmeare" * regtool.cc (find_key): Allow '/' as a synonym for '\\'. diff --git a/winsup/utils/regtool.cc b/winsup/utils/regtool.cc index 9ea9c14b50..e1eb4e08a1 100644 --- a/winsup/utils/regtool.cc +++ b/winsup/utils/regtool.cc @@ -36,7 +36,7 @@ const char *usage_msg[] = { "Regtool Copyright (c) 2000 Red Hat Inc", " regtool -h - print this message", " regtool [-v|-p|-k|-l] list [key] - list subkeys and values", - " -p=postfix, like ls -p, appends / postfix to key names", + " -p=postfix, like ls -p, appends \\ postfix to key names", " -k=keys, lists only keys", " -l=values, lists only values", " regtool [-v] add [key\\subkey] - add new subkey", @@ -194,13 +194,10 @@ find_key (int howmanyparts, REGSAM access) int i; if (*n == '/') translate (n); - while ((*n == '\\') || (*n == '/')) + while (*n == '\\') n++; - for (e = n; *e && *e != '\\' && *e != '/'; e++); - if (*e == '/') - c = '\\'; - else - c = *e; + for (e = n; *e && *e != '\\'; e++); + c = *e; *e = 0; for (i = 0; wkprefixes[i].string; i++) if (strcmp (wkprefixes[i].string, n) == 0) -- 2.11.0