From 1f308fb2b42066d9bd8292d3a05a6340451adb3c Mon Sep 17 00:00:00 2001
From: Matt Johnston <matt@ucc.asn.au>
Date: Wed, 4 Nov 2015 23:22:58 +0800
Subject: [PATCH] S_IWUSR rather than S_IWRITE for scp

---
 scp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scp.c b/scp.c
index 5a712922..70f45e32 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;
-- 
GitLab