simon-git: putty (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Tue Mar 26 19:29:56 GMT 2019
TL;DR:
e9f0abad uxpoll.c: cope with missing #defines in poll.h.
94f955fa Add an autoconf test and workaround for futimes(3).
235f5bf8 Check for auxv.h and hwcap.h before including them.
9375d132 Autoconf workaround for lack of setpwent / endpwent.
c2df294e Autoconf workaround for missing <glob.h>.
f5c17532 Link uxutils.o into Unix PuTTYgen.
Repository: https://git.tartarus.org/simon/putty.git
On the web: https://git.tartarus.org/?p=simon/putty.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2019-03-26 19:29:56
commit e9f0abad2ecbf1f971f5ef0542fe4c39160fd2a5
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=e9f0abad2ecbf1f971f5ef0542fe4c39160fd2a5;hp=464e351c7bdf62f32e918d9c2fe5e47e6bf9b7a8
Author: Simon Tatham <anakin at pobox.com>
Date: Tue Mar 26 18:37:26 2019 +0000
uxpoll.c: cope with missing #defines in poll.h.
Baruch Siach reports that in a uClibc-ng build environment, POLLRDNORM
and friends are only defined by poll.h if you #define _XOPEN_SOURCE
before including it. So now we do that, in case it helps - and we also
cope with those #defines still being absent, in case on some other
system even that doesn't help.
unix/uxpoll.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
commit 94f955fa909b0d3bb216b9c6ddaf365c9d7c861d
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=94f955fa909b0d3bb216b9c6ddaf365c9d7c861d;hp=e9f0abad2ecbf1f971f5ef0542fe4c39160fd2a5
Author: Simon Tatham <anakin at pobox.com>
Date: Tue Mar 26 18:39:40 2019 +0000
Add an autoconf test and workaround for futimes(3).
Not every system provides it (e.g. uClibc-ng); if one does not, the
Uppity SFTP server should now degrade sensibly to refusing attempts to
set the utimes on an already-open file.
configure.ac | 2 +-
unix/uxsftpserver.c | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
commit 235f5bf8ae40241d0967e47efacd4f1ff756c0d4
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=235f5bf8ae40241d0967e47efacd4f1ff756c0d4;hp=94f955fa909b0d3bb216b9c6ddaf365c9d7c861d
Author: Simon Tatham <anakin at pobox.com>
Date: Tue Mar 26 18:40:51 2019 +0000
Check for auxv.h and hwcap.h before including them.
uClibc-ng does not provide <sys/auxv.h>, and a non-Linux-kernel-based
Unixlike system running on Arm will probably not provide
<asm/hwcap.h>. Now we check for both of those headers at autoconf
time, and if either one is absent, we don't do the runtime test for
Arm crypto acceleration.
This should only make a difference on systems where this module
previously failed to compile at all. But obviously it would be nicer
to find alternative ways to check for crypto acceleration on such
systems; patches welcome.
configure.ac | 1 +
unix/uxutils.c | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
commit 9375d1325f064054bbe224a85d5cb9c850989c2d
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=9375d1325f064054bbe224a85d5cb9c850989c2d;hp=235f5bf8ae40241d0967e47efacd4f1ff756c0d4
Author: Simon Tatham <anakin at pobox.com>
Date: Tue Mar 26 19:03:15 2019 +0000
Autoconf workaround for lack of setpwent / endpwent.
Test-building inside Termux on Android, it seems that <pwd.h> in that
environment defines the important functions getpwnam and getpwuid, but
not the setpwent/endpwent with which we bookend them. Tolerate their
absence.
configure.ac | 2 +-
unix/uxmisc.c | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
commit c2df294e9e4a8603fe7134b4f042e6641b07215a
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=c2df294e9e4a8603fe7134b4f042e6641b07215a;hp=9375d1325f064054bbe224a85d5cb9c850989c2d
Author: Simon Tatham <anakin at pobox.com>
Date: Tue Mar 26 19:09:35 2019 +0000
Autoconf workaround for missing <glob.h>.
glob.h is another missing facility in Android+Termux.
The workaround is to condition out local wildcard support completely,
so that PSFTP commands like 'mput *.txt' won't manage to do anything.
But at least the program will compile.
configure.ac | 2 +-
unix/uxsftp.c | 26 +++++++++++++++++++++++++-
2 files changed, 26 insertions(+), 2 deletions(-)
commit f5c1753244d0399764fd68d6ac42ea2f2db47fc9
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=f5c1753244d0399764fd68d6ac42ea2f2db47fc9;hp=c2df294e9e4a8603fe7134b4f042e6641b07215a
Author: Simon Tatham <anakin at pobox.com>
Date: Tue Mar 26 19:12:27 2019 +0000
Link uxutils.o into Unix PuTTYgen.
On Arm Linux, this is necessary for the functions that check
availability of hardware crypto acceleration.
Recipe | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the tartarus-commits
mailing list