summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libutil/pty.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libutil/pty.c b/lib/libutil/pty.c
index 6513fd3..c60d250 100644
--- a/lib/libutil/pty.c
+++ b/lib/libutil/pty.c
@@ -47,7 +47,6 @@ static char sccsid[] = "@(#)pty.c 8.3 (Berkeley) 5/16/94";
#include <stdlib.h>
#include <string.h>
#include <termios.h>
-#include <unistd.h>
int
openpty(int *amaster, int *aslave, char *name, struct termios *termp,
@@ -70,9 +69,6 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp,
if (slavename == NULL)
goto bad;
- if (revoke(slavename) == -1)
- goto bad;
-
slave = open(slavename, O_RDWR);
if (slave == -1)
goto bad;
OpenPOWER on IntegriCloud