View | Details | Raw Unified | Return to bug 1419 | Differences between
and this patch

Collapse All | Expand All

(-)sshpty.c (+3 lines)
Lines 78-83 pty_allocate(int *ptyfd, int *ttyfd, cha Link Here
78
void
78
void
79
pty_release(const char *tty)
79
pty_release(const char *tty)
80
{
80
{
81
#ifdef __APPLE_PRIVPTY__
82
	return; /* pty is automatically released on close */
83
#endif
81
	if (chown(tty, (uid_t) 0, (gid_t) 0) < 0)
84
	if (chown(tty, (uid_t) 0, (gid_t) 0) < 0)
82
		error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno));
85
		error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno));
83
	if (chmod(tty, (mode_t) 0666) < 0)
86
	if (chmod(tty, (mode_t) 0666) < 0)

Return to bug 1419