summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-06-02 07:52:21 +1000
committerDarren Tucker <dtucker@zip.com.au>2013-06-02 07:52:21 +1000
commit3750fce6ac6b287f62584ac55a4406df95c71b92 (patch)
treee40b1697b606d0ecb0aa4cdcc994825c7fc94627 /scp.c
parentb759c9c2efebe7b416ab81093ca8eb17836b6933 (diff)
- dtucker@cvs.openbsd.org 2013/06/01 20:59:25
[scp.c sftp-client.c] Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is. Patch from Nathan Osman via bz#2113. ok deraadt. (note: corrected bug number from 2085)
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scp.c b/scp.c
index 32e9d00b2..b75d97bb9 100644
--- a/scp.c
+++ b/scp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: scp.c,v 1.173 2013/05/17 00:13:14 djm Exp $ */ 1/* $OpenBSD: scp.c,v 1.174 2013/06/01 20:59:25 dtucker Exp $ */
2/* 2/*
3 * scp - secure remote copy. This is basically patched BSD rcp which 3 * scp - secure remote copy. This is basically patched BSD rcp which
4 * uses ssh to do the data transfer (instead of using rcmd). 4 * uses ssh to do the data transfer (instead of using rcmd).
@@ -1066,7 +1066,7 @@ sink(int argc, char **argv)
1066 continue; 1066 continue;
1067 } 1067 }
1068 omode = mode; 1068 omode = mode;
1069 mode |= S_IWRITE; 1069 mode |= S_IWUSR;
1070 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) { 1070 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
1071bad: run_err("%s: %s", np, strerror(errno)); 1071bad: run_err("%s: %s", np, strerror(errno));
1072 continue; 1072 continue;