mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- avsm@cvs.openbsd.org 2005/05/26 02:08:05
[scp.c] If copying multiple files to a target file (which normally fails, as it must be a target directory), kill the spawned ssh child before exiting. This stops it trying to authenticate and spewing lots of output. deraadt@ ok
This commit is contained in:
parent
81eb5d5e10
commit
fc4f2dd347
10
ChangeLog
10
ChangeLog
@ -3,7 +3,13 @@
|
|||||||
arpa/nameser.h.
|
arpa/nameser.h.
|
||||||
- (dtucker) [configure.ac openbsd-compat/Makefile.in openbsd-compat/strtoll.c]
|
- (dtucker) [configure.ac openbsd-compat/Makefile.in openbsd-compat/strtoll.c]
|
||||||
Add strtoll to the compat library, from OpenBSD.
|
Add strtoll to the compat library, from OpenBSD.
|
||||||
|
- (dtucker) OpenBSD CVS Sync
|
||||||
|
- avsm@cvs.openbsd.org 2005/05/26 02:08:05
|
||||||
|
[scp.c]
|
||||||
|
If copying multiple files to a target file (which normally fails, as it
|
||||||
|
must be a target directory), kill the spawned ssh child before exiting.
|
||||||
|
This stops it trying to authenticate and spewing lots of output.
|
||||||
|
deraadt@ ok
|
||||||
|
|
||||||
20050531
|
20050531
|
||||||
- (dtucker) [contrib/aix/pam.conf] Correct comments. From davidl at
|
- (dtucker) [contrib/aix/pam.conf] Correct comments. From davidl at
|
||||||
@ -2652,4 +2658,4 @@
|
|||||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.3804 2005/06/01 11:39:33 dtucker Exp $
|
$Id: ChangeLog,v 1.3805 2005/06/01 13:01:12 dtucker Exp $
|
||||||
|
10
scp.c
10
scp.c
@ -71,7 +71,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: scp.c,v 1.122 2005/05/24 17:32:43 avsm Exp $");
|
RCSID("$OpenBSD: scp.c,v 1.123 2005/05/26 02:08:05 avsm Exp $");
|
||||||
|
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
#include "atomicio.h"
|
#include "atomicio.h"
|
||||||
@ -109,11 +109,13 @@ static void
|
|||||||
killchild(int signo)
|
killchild(int signo)
|
||||||
{
|
{
|
||||||
if (do_cmd_pid > 1) {
|
if (do_cmd_pid > 1) {
|
||||||
kill(do_cmd_pid, signo);
|
kill(do_cmd_pid, signo ? signo : SIGTERM);
|
||||||
waitpid(do_cmd_pid, NULL, 0);
|
waitpid(do_cmd_pid, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
_exit(1);
|
if (signo)
|
||||||
|
_exit(1);
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1072,7 +1074,7 @@ verifydir(char *cp)
|
|||||||
errno = ENOTDIR;
|
errno = ENOTDIR;
|
||||||
}
|
}
|
||||||
run_err("%s: %s", cp, strerror(errno));
|
run_err("%s: %s", cp, strerror(errno));
|
||||||
exit(1);
|
killchild(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user