summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-01-13 18:43:31 +0000
committermarkus <markus@openbsd.org>2001-01-13 18:43:31 +0000
commit28786063c4ab7b9c4fe3c808d383a5e57fe70efa (patch)
treec4adde7dabb4a6e9a20e381337f8b1d71c40a8bf
parentfix comment (diff)
downloadwireguard-openbsd-28786063c4ab7b9c4fe3c808d383a5e57fe70efa.tar.xz
wireguard-openbsd-28786063c4ab7b9c4fe3c808d383a5e57fe70efa.zip
Wall
-rw-r--r--usr.bin/ssh/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c
index ec250f519b1..cb857a748f9 100644
--- a/usr.bin/ssh/session.c
+++ b/usr.bin/ssh/session.c
@@ -33,7 +33,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: session.c,v 1.47 2001/01/13 18:32:50 markus Exp $");
+RCSID("$OpenBSD: session.c,v 1.48 2001/01/13 18:43:31 markus Exp $");
#include "xmalloc.h"
#include "ssh.h"
@@ -494,7 +494,7 @@ do_exec_no_pty(Session *s, const char *command, struct passwd * pw)
packet_disconnect("fork failed: %.100s", strerror(errno));
s->pid = pid;
/* Set interactive/non-interactive mode. */
- packet_set_interactive(s->display);
+ packet_set_interactive(s->display != NULL);
#ifdef USE_PIPES
/* We are the parent. Close the child sides of the pipes. */
close(pin[0]);