[PATCH] Replace obsolete S_IWRITE with S_IWUSR in scp.c
Fredrik Fornwall
fredrik at fornwall.net
Mon Jun 16 18:24:23 WST 2014
S_IWRITE is obsolete and should, judging from the same change in other
projects, be safe to replace with S_IWUSR. This fixes compilation on
Android.
-------------- next part --------------
diff -r 68723d66dec6 scp.c
--- a/scp.c Tue May 20 21:21:02 2014 +0800
+++ b/scp.c Mon Jun 16 12:21:59 2014 +0200
@@ -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;
More information about the Dropbear
mailing list