Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-06-28 06:46:11 +0400
committerChristopher Faylor <me@cgf.cx>2001-06-28 06:46:11 +0400
commit288f125efd393633bb18277d585682f09a5a8b52 (patch)
tree8c15a4c21fcc246d0c1381ef6e1d6833c987965c /winsup/utils/regtool.cc
parent7a4078ee340b7f15c839257d6fa895d92abe0224 (diff)
* regtool.cc (find_key): Revert previous change.
Diffstat (limited to 'winsup/utils/regtool.cc')
-rw-r--r--winsup/utils/regtool.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/winsup/utils/regtool.cc b/winsup/utils/regtool.cc
index 9ea9c14b5..e1eb4e08a 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)