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.
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;

Reply via email to