| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Spotted by djm@.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
On the second and subsequent calls to pselect the notify_pipe was not
added to the select readset, opening up a race that om G. Christensen
discovered on multiprocessor Solaris <=9 systems.
Also reinitialize notify_pipe if the pid changes. This will prevent a
parent and child from using the same FD, although this is not an issue
in the current structure it might be in future.
|
|
|
|
| |
to get sigset_t from signal.h needed for the pselect replacement.
|
|
|
|
|
|
|
| |
On platforms where closefrom returns void (eg glibc>=2.34) the prototype
for closefrom in its compat tests would cause compile errors. Remove
this and have the tests pull in the compat headers in the same way as
the main code. bz#3336.
|
|
|
|
|
| |
Prevents an unused variable warning on platforms that have setenv but
not unsetenv.
|
|
|
|
|
| |
get_random_bytes_prngd() is used if either of PRNGD_PORT or PRNGD_SOCKET
are defined, so adjust ifdef accordingly.
|
|
|
|
| |
avoid unused static function warning
|
|
|
|
|
| |
When built --without-openssl, try EGD/PRGGD (if configured) as a last
resort before failing.
|
|
|
|
| |
This will allow us to use it when building --without-openssl.
|
|
|
|
|
|
| |
When compiled in 32bit mode, the getgrouplist implementation may fail
for GIDs greater than LONG_MAX. Analysis and change from ralf.winkel
at tui.com.
|
|
|
|
| |
Prevents leaking an implementation detail to the caller.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This is basically the existing notify_pipe kludge from serverloop.c
moved behind a pselect interface. It works by installing a signal
handler that writes to a pipe that the select is watching, then calls
the original handler.
The select call in serverloop will become pselect soon, at which point the
kludge will be removed from thereand will only exist in the compat layer.
Original code by markus, help from djm.
|
|
|
|
|
|
| |
On minix3, login_getpwclass is __RENAME'ed to __login_getpwclass50 so
without this the include overriding login_getpwclass causes a compile
error.
|
| |
|
|
|
|
|
|
| |
In -portable, defines.h ensures that these are defined, so redefining
potentially causes a warning. We don't just delete it to make any
future code syncs a little but easier. bz#3293.
|
| |
|
|
|
|
|
|
| |
This ensures that the macros in log.h are defined in the case where
either of --with-solaris-projects or --with-solaris-privs are used
without --with-solaris-contracts. bz#3278.
|
|
|
|
|
|
|
|
|
| |
OpenSSL renamed the "get current CIPHER_CTX" IV operation in 3.x.
This uses the new name if available.
https://github.com/openssl/openssl/issues/13411
bz#3238 ok dtucker@
|
|
|
|
|
|
|
|
| |
FreeBSD has login_getpwclass() that does some special magic for
UID=0. Prefer this to login_getclass() as its easier to emulate
the former with the latter.
Based on FreeBSD PR 37416 via Ed Maste; ok dtucker@
|
|
|
|
| |
Favoriting the native implementation in this case.
|
|
|
|
| |
Fixes build on at least OpenBSD.
|
|
|
|
| |
(it was only ever a char* anyway)
|
|
|
|
|
|
|
| |
We needed a mkdtemp() that accepted template paths that did not
end in XXXXXX a long time ago for KRB4, but that code is long
deprecated. We no longer need to replace mkdtemp() for strictly
following POSIX. ok dtucker@
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
avoids warnings on NetBSD
|
|
|
|
| |
Needed for NetBSD. etc that supply these macros
|
|
|
|
| |
needed for TAILQ_CONCAT
|
| |
|
|
|
|
|
|
|
|
| |
Prevents following warning from clang 10:
bcrypt_pbkdf.c:94:40: error: expression does not compute the number of
elements in this array; element type is ´uint32_tÂ[...]
place parentheses around the ´sizeof(uint64_t)´ expression to
silence this warning
|
|
|
|
|
| |
Prevent infinite for loop since i went from ssize_t to size_t. Patch from
eagleoflqj via OpenSSH github PR#178, ok djm@, feedback & ok millert@
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
from https://fossies.org/linux/misc/openssh-8.2p1.tar.gz/codespell.html
|
|
|
|
| |
Prevents warning about discarding type qualifiers on AIX.
|
|
|
|
| |
Prevents redefinition warning on AIX.
|
| |
|
|
|
|
|
| |
Check in sys/socket.h (AIX) and unistd.h (FreeBSD, DragonFLy and OS X).
Prevents undeclared function warning on at least some versions of AIX.
|
|
|
|
|
|
|
| |
The point of the dummy declaration is so that MAKE_CLONE(...) can have
a trailing semicolon without introducing an empty declaration. So,
the macro replacement text should *not* have a trailing semicolon,
just like DEF_WEAK.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
We switched the main code to use sigaction(), so the wrapper is no
longer used.
|
|
|
|
|
|
|
|
| |
sigaction(2). This wrapper blocks all other signals during the handler
preventing races between handlers, and sets SA_RESTART which should reduce
the potential for short read/write operations.
OpenBSD-Commit-ID: 5e047663fd77a40d7b07bdabe68529df51fd2519
|