X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=common%2Fdumprmt.c;h=5f53079c6ddb7131702af8d8a39a0b2275cb4fb4;hp=db18d328547cb717a37cc586b04b950d68313c62;hb=f34aca37d19fe46de9acb22249565dfb6491ab2f;hpb=60f5ede9f87288e50fc52fbe12dd70fcd67d322d diff --git a/common/dumprmt.c b/common/dumprmt.c index db18d32..5f53079 100644 --- a/common/dumprmt.c +++ b/common/dumprmt.c @@ -40,7 +40,7 @@ #ifndef lint static const char rcsid[] = - "$Id: dumprmt.c,v 1.7 1999/10/30 22:55:50 tiniou Exp $"; + "$Id: dumprmt.c,v 1.8 1999/11/02 09:35:56 tiniou Exp $"; #endif /* not lint */ #ifdef __linux__ @@ -97,6 +97,7 @@ static const char rcsid[] = static int rmtstate = TS_CLOSED; static int tormtape = -1; static int fromrmtape = -1; +int rshpid = -1; static const char *rmtpeer = 0; static int okname __P((const char *)); @@ -203,7 +204,7 @@ rmtgetconn(void) rshcmd[4] = rmt; rshcmd[5] = NULL; - if (piped_child(rshcmd) < 0) { + if ((rshpid = piped_child(rshcmd)) < 0) { msg("cannot open connection\n"); return 0; }