mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 16:24:39 +02:00
upstream: Explictly ignore return codes
where we don't check them. OpenBSD-Commit-ID: 1ffb03038ba1b6b72667be50cf5e5e396b5f2740
This commit is contained in:
parent
6f0308a3e7
commit
6b73aa2903
6
scp.c
6
scp.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: scp.c,v 1.254 2023/03/27 03:25:08 djm Exp $ */
|
/* $OpenBSD: scp.c,v 1.255 2023/03/31 04:45:08 dtucker Exp $ */
|
||||||
/*
|
/*
|
||||||
* scp - secure remote copy. This is basically patched BSD rcp which
|
* scp - secure remote copy. This is basically patched BSD rcp which
|
||||||
* uses ssh to do the data transfer (instead of using rcmd).
|
* uses ssh to do the data transfer (instead of using rcmd).
|
||||||
@ -194,11 +194,11 @@ killchild(int signo)
|
|||||||
{
|
{
|
||||||
if (do_cmd_pid > 1) {
|
if (do_cmd_pid > 1) {
|
||||||
kill(do_cmd_pid, signo ? signo : SIGTERM);
|
kill(do_cmd_pid, signo ? signo : SIGTERM);
|
||||||
waitpid(do_cmd_pid, NULL, 0);
|
(void)waitpid(do_cmd_pid, NULL, 0);
|
||||||
}
|
}
|
||||||
if (do_cmd_pid2 > 1) {
|
if (do_cmd_pid2 > 1) {
|
||||||
kill(do_cmd_pid2, signo ? signo : SIGTERM);
|
kill(do_cmd_pid2, signo ? signo : SIGTERM);
|
||||||
waitpid(do_cmd_pid2, NULL, 0);
|
(void)waitpid(do_cmd_pid2, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (signo)
|
if (signo)
|
||||||
|
4
sftp.c
4
sftp.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: sftp.c,v 1.231 2023/03/29 00:59:08 dtucker Exp $ */
|
/* $OpenBSD: sftp.c,v 1.232 2023/03/31 04:45:08 dtucker Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
|
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
|
||||||
*
|
*
|
||||||
@ -225,7 +225,7 @@ killchild(int signo)
|
|||||||
pid = sshpid;
|
pid = sshpid;
|
||||||
if (pid > 1) {
|
if (pid > 1) {
|
||||||
kill(pid, SIGTERM);
|
kill(pid, SIGTERM);
|
||||||
waitpid(pid, NULL, 0);
|
(void)waitpid(pid, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
_exit(1);
|
_exit(1);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ssh-agent.c,v 1.297 2023/03/09 21:06:24 jcs Exp $ */
|
/* $OpenBSD: ssh-agent.c,v 1.298 2023/03/31 04:45:08 dtucker Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
@ -2020,8 +2020,8 @@ main(int ac, char **av)
|
|||||||
sanitise_stdfd();
|
sanitise_stdfd();
|
||||||
|
|
||||||
/* drop */
|
/* drop */
|
||||||
setegid(getgid());
|
(void)setegid(getgid());
|
||||||
setgid(getgid());
|
(void)setgid(getgid());
|
||||||
|
|
||||||
platform_disable_tracing(0); /* strict=no */
|
platform_disable_tracing(0); /* strict=no */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user