diff scp.c @ 1173:d734fe76b72f coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Mon, 23 Nov 2015 23:04:48 +0800
parents 0a1891e23b18
children 952624727411 2bb4c662d1c2
line wrap: on
line diff
--- a/scp.c	Fri Aug 07 21:26:03 2015 +0800
+++ b/scp.c	Mon Nov 23 23:04:48 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;