Merge branch 'master' into autotools-conversion

Lost the ksh93 submodule so will re-add in a later commit.
This commit is contained in:
Jon Trulson
2021-01-30 19:04:10 -07:00
1044 changed files with 2966 additions and 197577 deletions

View File

@@ -195,8 +195,16 @@ int ConnectToPrintServer(const char *rhost, int timeout)
// run as user's UID, but with privileges from root
SETEUID(0);
// Try connecting to the server.
// Try connecting to the server from a privileged port.
/* FIXME: Test for the presence of rresvport and provide a substitute
* if necessary. Linux C library support:
* dietlibc: no rresvport, defines __dietlibc__
* musl: no rresvport
* uclibc: rresvport, defines __GLIBC__
*/
#if !defined(__linux__) || defined(__GLIBC__)
s = rresvport(&lport);
#endif
signal(SIGALRM, connect_timeout);
if (timeout > 0)