diff options
Diffstat (limited to 'src/util/pty/cleanup.c')
-rw-r--r-- | src/util/pty/cleanup.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/util/pty/cleanup.c b/src/util/pty/cleanup.c index 50eecc56f..3352fa04e 100644 --- a/src/util/pty/cleanup.c +++ b/src/util/pty/cleanup.c @@ -32,11 +32,6 @@ long pty_cleanup (slave, pid, update_utmp) (void)chmod(slave, 0666); (void)chown(slave, 0, 0); -#ifndef HAVE_STREAMS - slave[strlen("/dev/")] = 'p'; - (void)chmod(slave, 0666); - (void)chown(slave, 0, 0); -#endif #ifdef HAVE_REVOKE revoke(slave); /* @@ -60,7 +55,12 @@ long pty_cleanup (slave, pid, update_utmp) if ( retval = ( pty_open_ctty( slave, &fd ))) return retval; ptyint_vhangup(); - return 0; -#endif +#endif /*VHANG_LAST*/ +#endif /* HAVE_REVOKE*/ +#ifndef HAVE_STREAMS + slave[strlen("/dev/")] = 'p'; + (void)chmod(slave, 0666); + (void)chown(slave, 0, 0); #endif + return 0; } |