Return to sshpty.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.29, 2014/09/03 18:55:07 | version 1.30, 2015/07/30 23:09:15 | ||
---|---|---|---|
|
|
||
/* 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. |