Created attachment 2287 [details] Replaces instances of S_IWRITE with S_IWUSR. The constant S_IWRITE is used in a couple of places in the OpenSSH source code. According to the page below, this constant is obsolete: http://www.gnu.org/savannah-checkouts/gnu/libc/manual/html_node/Permission-Bits.html This causes the following errors when cross-compiling for the Android platform: scp.c:1071:11: error: 'S_IWRITE' undeclared (first use in this function) sftp-client.c:1054:13: error: 'S_IWRITE' undeclared (first use in this function) The equivalent constant that should be used in its place is 'S_IWUSR'. I have attached a patch that corrects these instances.
Seems reasonable, it's also consistent with SuSv2: http://pubs.opengroup.org/onlinepubs/007908799/xsh/sysstat.h.html put on the list for 6.3
Applied, thanks.
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1