]> andersk Git - openssh.git/commitdiff
- djm@cvs.openbsd.org 2005/04/21 11:47:19
authordjm <djm>
Thu, 26 May 2005 02:05:05 +0000 (02:05 +0000)
committerdjm <djm>
Thu, 26 May 2005 02:05:05 +0000 (02:05 +0000)
     [ssh.c]
     don't allocate a pty when -n flag (/dev/null stdin) is set, patch from
     ignasi.roca AT fujitsu-siemens.com (bz #829); ok dtucker@

ChangeLog
ssh.c

index ac4feb7d405ed5c447788ead2e11af1a64f9bba2..646e3cf134d6adb4e4776d34e4b90600e4138dcb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
      [ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 ssh_config.5 sshd.8]
      [sshd_config.5] OpenSSH doesn't ever look at the $HOME environment
      variable, so don't say that we do (bz #623); ok deraadt@
+   - djm@cvs.openbsd.org 2005/04/21 11:47:19
+     [ssh.c]
+     don't allocate a pty when -n flag (/dev/null stdin) is set, patch from
+     ignasi.roca AT fujitsu-siemens.com (bz #829); ok dtucker@
 
 20050524
  - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
diff --git a/ssh.c b/ssh.c
index cff54b9d6e34f29c6090ec7fa44b989919ef2c17..add697ae004771daeb62ed1c7a75d156341d8fbf 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -40,7 +40,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: ssh.c,v 1.235 2005/04/06 12:26:06 dtucker Exp $");
+RCSID("$OpenBSD: ssh.c,v 1.236 2005/04/21 11:47:19 djm Exp $");
 
 #include <openssl/evp.h>
 #include <openssl/err.h>
@@ -550,7 +550,7 @@ again:
        if (no_tty_flag)
                tty_flag = 0;
        /* Do not allocate a tty if stdin is not a tty. */
-       if (!isatty(fileno(stdin)) && !force_tty_flag) {
+       if ((!isatty(fileno(stdin)) || stdin_null_flag) && !force_tty_flag) {
                if (tty_flag)
                        logit("Pseudo-terminal will not be allocated because stdin is not a terminal.");
                tty_flag = 0;
This page took 0.127544 seconds and 5 git commands to generate.