The check for invalid characters introduced in 1.9 incorrectly
flags NIS entries as invalid. MFC6 candidate Submitted by: Bob Willcox <bob@immure.com> PR: bin/82325 (but I used the patch from Bob).
This commit is contained in:
parent
b2905271b3
commit
6553069018
@ -106,7 +106,8 @@ main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
for (cp = f[0] ; *cp ; cp++) {
|
||||
if (!isalnum(*cp) && *cp != '.' && *cp != '_' && *cp != '-') {
|
||||
if (!isalnum(*cp) && *cp != '.' && *cp != '_' && *cp != '-' &&
|
||||
(cp > f[0] || *cp != '+')) {
|
||||
warnx("%s: line %d: '%c' invalid character", gfn, n, *cp);
|
||||
e++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user