Bugzilla – Attachment 1416 Details for
Bug 1419
Fix PTY handling on Mac OS X
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
A PTY permission fix.
DVG-5258734_pty_permission_fix.patch (text/plain), 763 bytes, created by
Disco Vince Giffin
on 2007-12-21 15:45:38 AEDT
(
hide
)
Description:
A PTY permission fix.
Filename:
MIME Type:
Creator:
Disco Vince Giffin
Created:
2007-12-21 15:45:38 AEDT
Size:
763 bytes
patch
obsolete
>diff -uNr ../openssh-4.5p1.orig/session.c ./session.c >--- ../openssh-4.5p1.orig/session.c 2006-10-23 10:01:56.000000000 -0700 >+++ ./session.c 2007-06-15 11:23:17.000000000 -0700 >@@ -1846,8 +1846,10 @@ > n_bytes = packet_remaining(); > tty_parse_modes(s->ttyfd, &n_bytes); > >+#ifndef __APPLE_PRIVPTY__ > if (!use_privsep) > pty_setowner(s->pw, s->tty); >+#endif > > /* Set window size from the packet. */ > pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel); >@@ -2085,9 +2087,11 @@ > if (s->pid != 0) > record_logout(s->pid, s->tty, s->pw->pw_name); > >+#ifndef __APPLE_PRIVPTY__ > /* Release the pseudo-tty. */ > if (getuid() == 0) > pty_release(s->tty); >+#endif > > /* > * Close the server side of the socket pairs. We must do this after
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1419
:
1415
|
1416
|
1439
|
1593
|
1594