changeset 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 cdea5dbb1755
children 8b6cba298768
files scp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;