use conventional user 'nobody' if user 'none' is not defined
This commit is contained in:
parent
f287341675
commit
210be38e4d
4
u9fs.c
4
u9fs.c
@ -424,6 +424,8 @@ rattach(Fcall *rx, Fcall *tx)
|
||||
seterror(tx, Eauth);
|
||||
return;
|
||||
}
|
||||
if(none != nil)
|
||||
rx->uname = none->name;
|
||||
} else {
|
||||
if((e = auth->attach(rx, tx)) != nil){
|
||||
seterror(tx, e);
|
||||
@ -1825,6 +1827,8 @@ main(int argc, char **argv)
|
||||
root = argv[0];
|
||||
|
||||
none = uname2user("none");
|
||||
if(none == nil)
|
||||
none = uname2user("nobody");
|
||||
|
||||
serve(0, 1);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user