* regtool.cc (find_key): Allow '/' as a synonym for '\\'.
This commit is contained in:
parent
07c3cd5bb1
commit
c135faa8b3
@ -1,3 +1,7 @@
|
|||||||
|
Wed Jun 27 13:37:41 2001 Keith Starsmeare" <keith_starsmeare@yahoo.co.uk>
|
||||||
|
|
||||||
|
* regtool.cc (find_key): Allow '/' as a synonym for '\\'.
|
||||||
|
|
||||||
Fri Jun 15 00:49:21 2001 Christopher Faylor <cgf@cygnus.com>
|
Fri Jun 15 00:49:21 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* mkpasswd.c (main): Output passwd file in binary mode so that there
|
* mkpasswd.c (main): Output passwd file in binary mode so that there
|
||||||
|
@ -194,9 +194,12 @@ find_key (int howmanyparts, REGSAM access)
|
|||||||
int i;
|
int i;
|
||||||
if (*n == '/')
|
if (*n == '/')
|
||||||
translate (n);
|
translate (n);
|
||||||
while (*n == '\\')
|
while ((*n == '\\') || (*n == '/'))
|
||||||
n++;
|
n++;
|
||||||
for (e = n; *e && *e != '\\'; e++);
|
for (e = n; *e && *e != '\\' && *e != '/'; e++);
|
||||||
|
if (*e == '/')
|
||||||
|
c = '\\';
|
||||||
|
else
|
||||||
c = *e;
|
c = *e;
|
||||||
*e = 0;
|
*e = 0;
|
||||||
for (i = 0; wkprefixes[i].string; i++)
|
for (i = 0; wkprefixes[i].string; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user