ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/ptytty.C
(Generate patch)

Comparing rxvt-unicode/src/ptytty.C (file contents):
Revision 1.67 by ayin, Mon Nov 19 11:26:34 2007 UTC vs.
Revision 1.68 by ayin, Tue Dec 11 21:49:12 2007 UTC

86 86
87 if (pfd >= 0) 87 if (pfd >= 0)
88 { 88 {
89 if (grantpt (pfd) == 0 /* change slave permissions */ 89 if (grantpt (pfd) == 0 /* change slave permissions */
90 && unlockpt (pfd) == 0) 90 && unlockpt (pfd) == 0)
91 {
91 { /* slave now unlocked */ 92 /* slave now unlocked */
92 *ttydev = strdup (ptsname (pfd)); /* get slave's name */ 93 *ttydev = strdup (ptsname (pfd)); /* get slave's name */
93 return pfd; 94 return pfd;
94 } 95 }
95 96
96 close (pfd); 97 close (pfd);
325 { 326 {
326#ifdef TTY_GID_SUPPORT 327#ifdef TTY_GID_SUPPORT
327 struct group *gr = getgrnam ("tty"); 328 struct group *gr = getgrnam ("tty");
328 329
329 if (gr) 330 if (gr)
331 {
330 { /* change group ownership of tty to "tty" */ 332 /* change group ownership of tty to "tty" */
331 mode = S_IRUSR | S_IWUSR | S_IWGRP; 333 mode = S_IRUSR | S_IWUSR | S_IWGRP;
332 gid = gr->gr_gid; 334 gid = gr->gr_gid;
333 } 335 }
334 else 336 else
335#endif /* TTY_GID_SUPPORT */ 337#endif /* TTY_GID_SUPPORT */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines