summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--scp.c14
2 files changed, 14 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index fa8acb155..4d90d8e2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,10 @@
7 [monitor_wrap.c] 7 [monitor_wrap.c]
8 Put s/key functions inside #ifdef SKEY same as monitor.c, 8 Put s/key functions inside #ifdef SKEY same as monitor.c,
9 from des@freebsd via bz #330, ok markus@ 9 from des@freebsd via bz #330, ok markus@
10 - dtucker@cvs.openbsd.org 2004/07/08 12:47:21
11 [scp.c]
12 Prevent scp from skipping the file following a double-error.
13 bz #863, ok markus@
10 14
1120040702 1520040702
12 - (dtucker) [mdoc2man.awk] Teach it to ignore .Bk -words, reported by 16 - (dtucker) [mdoc2man.awk] Teach it to ignore .Bk -words, reported by
@@ -1491,4 +1495,4 @@
1491 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 1495 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
1492 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 1496 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
1493 1497
1494$Id: ChangeLog,v 1.3470 2004/07/08 13:09:42 dtucker Exp $ 1498$Id: ChangeLog,v 1.3471 2004/07/08 13:11:44 dtucker Exp $
diff --git a/scp.c b/scp.c
index 3ae17c9ac..e559122a1 100644
--- a/scp.c
+++ b/scp.c
@@ -71,7 +71,7 @@
71 */ 71 */
72 72
73#include "includes.h" 73#include "includes.h"
74RCSID("$OpenBSD: scp.c,v 1.115 2004/06/21 17:36:31 avsm Exp $"); 74RCSID("$OpenBSD: scp.c,v 1.116 2004/07/08 12:47:21 dtucker Exp $");
75 75
76#include "xmalloc.h" 76#include "xmalloc.h"
77#include "atomicio.h" 77#include "atomicio.h"
@@ -946,21 +946,25 @@ bad: run_err("%s: %s", np, strerror(errno));
946 if (pflag) { 946 if (pflag) {
947 if (exists || omode != mode) 947 if (exists || omode != mode)
948#ifdef HAVE_FCHMOD 948#ifdef HAVE_FCHMOD
949 if (fchmod(ofd, omode)) 949 if (fchmod(ofd, omode)) {
950#else /* HAVE_FCHMOD */ 950#else /* HAVE_FCHMOD */
951 if (chmod(np, omode)) 951 if (chmod(np, omode)) {
952#endif /* HAVE_FCHMOD */ 952#endif /* HAVE_FCHMOD */
953 run_err("%s: set mode: %s", 953 run_err("%s: set mode: %s",
954 np, strerror(errno)); 954 np, strerror(errno));
955 wrerr = DISPLAYED;
956 }
955 } else { 957 } else {
956 if (!exists && omode != mode) 958 if (!exists && omode != mode)
957#ifdef HAVE_FCHMOD 959#ifdef HAVE_FCHMOD
958 if (fchmod(ofd, omode & ~mask)) 960 if (fchmod(ofd, omode & ~mask)) {
959#else /* HAVE_FCHMOD */ 961#else /* HAVE_FCHMOD */
960 if (chmod(np, omode & ~mask)) 962 if (chmod(np, omode & ~mask)) {
961#endif /* HAVE_FCHMOD */ 963#endif /* HAVE_FCHMOD */
962 run_err("%s: set mode: %s", 964 run_err("%s: set mode: %s",
963 np, strerror(errno)); 965 np, strerror(errno));
966 wrerr = DISPLAYED;
967 }
964 } 968 }
965 if (close(ofd) == -1) { 969 if (close(ofd) == -1) {
966 wrerr = YES; 970 wrerr = YES;