[BACK]Return to sock.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / sndiod

Diff for /src/usr.bin/sndiod/sock.c between version 1.46 and 1.47

version 1.46, 2022/04/29 08:30:48 version 1.47, 2022/12/26 19:16:03
Line 834 
Line 834 
         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;

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47