tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 0efc1e6372a38e5c50d7c1e556ce67cad0114ca7
parent d21ad8a78df8d134bd6acd512b95c8db2b5821ef
Author: Nick Mathewson <nickm@torproject.org>
Date:   Mon,  8 Feb 2021 12:39:12 -0500

40274: Add a changes file and make the same change with FD_CLOEXEC

Diffstat:
Achanges/ticket40274 | 4++++
Msrc/test/test_util.c | 2+-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/changes/ticket40274 b/changes/ticket40274 @@ -0,0 +1,4 @@ + o Minor bugfixes (compatibility): + - Fix a failure in the test cases when running on the hppa architecture, + along with a related test that might fail on other architectures in the + future. Fixes bug 40274; bugfix on 0.2.5.1-alpha. diff --git a/src/test/test_util.c b/src/test/test_util.c @@ -5927,7 +5927,7 @@ static int fd_is_cloexec(tor_socket_t fd) { int flags = fcntl(fd, F_GETFD, 0); - return (flags & FD_CLOEXEC) == FD_CLOEXEC; + return (flags & FD_CLOEXEC) != 0; } #endif /* defined(FD_CLOEXEC) */