summaryrefslogtreecommitdiff
path: root/pty.c
diff options
context:
space:
mode:
authordamien <damien>2000-03-09 11:31:13 +0000
committerdamien <damien>2000-03-09 11:31:13 +0000
commit42dbf96718ec3ef798a4631f7a2863a454dda0d9 (patch)
tree86dd353020278212e73ce57e63ea3d4f8701ccd8 /pty.c
parent5cd0b37bc26d1ed66e622ae7e29c698b0882cb45 (diff)
downloadopenssh-42dbf96718ec3ef798a4631f7a2863a454dda0d9.tar.gz
- Removed warning workaround for Linux and devpts filesystems (no longer
required after OpenBSD updates)
Diffstat (limited to 'pty.c')
-rw-r--r--pty.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pty.c b/pty.c
index cf8d6888..03a75488 100644
--- a/pty.c
+++ b/pty.c
@@ -14,7 +14,7 @@
*/
#include "includes.h"
-RCSID("$Id: pty.c,v 1.15 2000/03/09 10:27:51 damien Exp $");
+RCSID("$Id: pty.c,v 1.16 2000/03/09 11:31:13 damien Exp $");
#ifdef HAVE_UTIL_H
# include <util.h>
@@ -187,12 +187,10 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)
void
pty_release(const char *ttyname)
{
-#ifndef PTY_REMOVED_ON_CLOSE
if (chown(ttyname, (uid_t) 0, (gid_t) 0) < 0)
error("chown %.100s 0 0 failed: %.100s", ttyname, strerror(errno));
if (chmod(ttyname, (mode_t) 0666) < 0)
error("chmod %.100s 0666 failed: %.100s", ttyname, strerror(errno));
-#endif /* PTY_REMOVED_ON_CLOSE */
}
/* Makes the tty the processes controlling tty and sets it to sane modes. */