From 2be24c1c26d28e6a25cba1273534ccc78274cd2f Mon Sep 17 00:00:00 2001 From: markus Date: Mon, 6 Mar 2000 20:29:04 +0000 Subject: [PATCH] fix pr 1113, fclose() -> pclose(), todo: remote popen() --- usr.bin/ssh/sshd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index 236b08c3bce..dd57e81ab54 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -11,7 +11,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshd.c,v 1.89 2000/02/28 19:40:23 markus Exp $"); +RCSID("$OpenBSD: sshd.c,v 1.90 2000/03/06 20:29:04 markus Exp $"); #include "xmalloc.h" #include "rsa.h" @@ -2462,7 +2462,7 @@ do_child(const char *command, struct passwd * pw, const char *term, f = popen(XAUTH_PATH " -q -", "w"); if (f) { fprintf(f, "add %s %s %s\n", display, auth_proto, auth_data); - fclose(f); + pclose(f); } else fprintf(stderr, "Could not run %s -q -\n", XAUTH_PATH); } -- 2.20.1