kernel: fix indention in validname0()
This commit is contained in:
parent
9585e9b7f8
commit
d275add1a8
1 changed files with 4 additions and 4 deletions
|
@ -1758,10 +1758,10 @@ validname0(char *aname, int slashok, int dup, uintptr pc)
|
||||||
name += chartorune(&r, name);
|
name += chartorune(&r, name);
|
||||||
else{
|
else{
|
||||||
if(isfrog[c])
|
if(isfrog[c])
|
||||||
if(!slashok || c!='/'){
|
if(!slashok || c!='/'){
|
||||||
snprint(up->genbuf, sizeof(up->genbuf), "%s: %q", Ebadchar, aname);
|
snprint(up->genbuf, sizeof(up->genbuf), "%s: %q", Ebadchar, aname);
|
||||||
free(s);
|
free(s);
|
||||||
error(up->genbuf);
|
error(up->genbuf);
|
||||||
}
|
}
|
||||||
name++;
|
name++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue