summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2020-05-06 20:57:39 +0000
committerDamien Miller <djm@cvs.openbsd.org>2020-05-06 20:57:39 +0000
commit7c117d13da93473c0d384c366c71ed5419acf7d8 (patch)
treea45e15bcbdf58035c3cc74193b73ac007d134294 /usr.bin/ssh
parent6086e9495faeb4d5bb255fc1faa5dc8ca1ddd154 (diff)
another case where a utimes() failure could make scp send a
desynchronising error; reminded by Aymeric Vincent ok deraadt markus
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/scp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c
index c888a7b8ded..9fcbf9c3955 100644
--- a/usr.bin/ssh/scp.c
+++ b/usr.bin/ssh/scp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scp.c,v 1.209 2020/05/01 06:31:42 djm Exp $ */
+/* $OpenBSD: scp.c,v 1.210 2020/05/06 20:57:38 djm Exp $ */
/*
* scp - secure remote copy. This is basically patched BSD rcp which
* uses ssh to do the data transfer (instead of using rcmd).
@@ -1400,9 +1400,7 @@ sink(int argc, char **argv, const char *src)
sink(1, vect, src);
if (setimes) {
setimes = 0;
- if (utimes(vect[0], tv) == -1)
- run_err("%s: set times: %s",
- vect[0], strerror(errno));
+ (void) utimes(vect[0], tv);
}
if (mod_flag)
(void) chmod(vect[0], mode);