kernel: fix indention in validname0()

This commit is contained in:
cinap_lenrek 2015-08-06 11:43:22 +02:00
parent 9585e9b7f8
commit d275add1a8

View file

@ -1758,10 +1758,10 @@ validname0(char *aname, int slashok, int dup, uintptr pc)
name += chartorune(&r, name);
else{
if(isfrog[c])
if(!slashok || c!='/'){
snprint(up->genbuf, sizeof(up->genbuf), "%s: %q", Ebadchar, aname);
free(s);
error(up->genbuf);
if(!slashok || c!='/'){
snprint(up->genbuf, sizeof(up->genbuf), "%s: %q", Ebadchar, aname);
free(s);
error(up->genbuf);
}
name++;
}