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

Diff for /src/usr.bin/ssh/sshpty.c between version 1.29 and 1.30

version 1.29, 2014/09/03 18:55:07 version 1.30, 2015/07/30 23:09:15
Line 142 
Line 142 
         /* Determine the group to make the owner of the tty. */          /* Determine the group to make the owner of the tty. */
         grp = getgrnam("tty");          grp = getgrnam("tty");
         gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid;          gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid;
         mode = (grp != NULL) ? 0622 : 0600;          mode = (grp != NULL) ? 0620 : 0600;
   
         /*          /*
          * Change owner and mode of the tty as required.           * Change owner and mode of the tty as required.

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30