diff options
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |
1071 | bad: run_err("%s: %s", np, strerror(errno)); | 1071 | bad: run_err("%s: %s", np, strerror(errno)); |
1072 | continue; | 1072 | continue; |