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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148695
@ -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…
Reference in New Issue
Block a user