Mercurial > dropbear
comparison scp.c @ 729:fedfb8ede1fd
Fix incorrect logic for USE_VFORK and calling arg_setup()
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 31 Mar 2013 23:29:03 +0800 |
parents | 6c35ff40e496 |
children | c19acba28590 |
comparison
equal
deleted
inserted
replaced
728:f27058078d61 | 729:fedfb8ede1fd |
---|---|
228 dup2(pin[0], 0); | 228 dup2(pin[0], 0); |
229 dup2(pout[1], 1); | 229 dup2(pout[1], 1); |
230 close(pin[0]); | 230 close(pin[0]); |
231 close(pout[1]); | 231 close(pout[1]); |
232 | 232 |
233 #ifdef USE_VFORK | 233 #ifndef USE_VFORK |
234 arg_setup(host, remuser, cmd); | 234 arg_setup(host, remuser, cmd); |
235 #endif | 235 #endif |
236 | 236 |
237 execvp(ssh_program, args.list); | 237 execvp(ssh_program, args.list); |
238 perror(ssh_program); | 238 perror(ssh_program); |