diff scp.c @ 1163:0a1891e23b18

S_IWUSR rather than S_IWRITE for scp
author Matt Johnston <matt@ucc.asn.au>
date Wed, 04 Nov 2015 23:22:58 +0800
parents 2dee3eef5344
children 952624727411 2bb4c662d1c2
line wrap: on
line diff
--- a/scp.c	Wed Oct 28 21:44:16 2015 +0800
+++ b/scp.c	Wed Nov 04 23:22:58 2015 +0800
@@ -992,7 +992,7 @@
 			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;