aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-02-08 12:39:12 -0500
committerNick Mathewson <nickm@torproject.org>2021-02-08 12:39:12 -0500
commit0efc1e6372a38e5c50d7c1e556ce67cad0114ca7 (patch)
tree61bd9c12e9387f0c31f47e6493c98bd7571916e2
parentd21ad8a78df8d134bd6acd512b95c8db2b5821ef (diff)
downloadtor-0efc1e6372a38e5c50d7c1e556ce67cad0114ca7.tar.gz
tor-0efc1e6372a38e5c50d7c1e556ce67cad0114ca7.zip
40274: Add a changes file and make the same change with FD_CLOEXEC
-rw-r--r--changes/ticket402744
-rw-r--r--src/test/test_util.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/changes/ticket40274 b/changes/ticket40274
new file mode 100644
index 0000000000..6bcc89e19c
--- /dev/null
+++ 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
index c4da911f83..39685d3443 100644
--- 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) */