summaryrefslogtreecommitdiffhomepage
path: root/scp.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-11-04 23:22:58 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-11-04 23:22:58 +0800
commit1f308fb2b42066d9bd8292d3a05a6340451adb3c (patch)
treefe06a7b9d39ac8670aa1b72d4c036db346df6029 /scp.c
parente2d36d493f894ae411c49e13174f6f1e979d3dea (diff)
S_IWUSR rather than S_IWRITE for scp
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scp.c b/scp.c
index 5a71292..70f45e3 100644
--- a/scp.c
+++ b/scp.c
@@ -992,7 +992,7 @@ sink(int argc, char **argv)
continue;
}
omode = mode;
- mode |= S_IWRITE;
+ mode |= S_IWUSR;
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
bad: run_err("%s: %s", np, strerror(errno));
continue;