Return to sock.c CVS log | Up to [local] / src / usr.bin / sndiod |
version 1.46, 2022/04/29 08:30:48 | version 1.47, 2022/12/26 19:16:03 | ||
---|---|---|---|
|
|
||
gid_t egid; | gid_t egid; | ||
/* | /* | ||
* root bypasses any authenication checks and has no session | * root bypasses any authentication checks and has no session | ||
*/ | */ | ||
if (getpeereid(f->fd, &euid, &egid) == 0 && euid == 0) { | if (getpeereid(f->fd, &euid, &egid) == 0 && euid == 0) { | ||
f->pstate = SOCK_HELLO; | f->pstate = SOCK_HELLO; |