summaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-02-27 15:37:31 +0100
committerAlexander Færøy <ahf@torproject.org>2017-03-01 21:26:26 +0100
commit498287b3c340739bede9a3fa95ea23b6ae650bf3 (patch)
tree1cab67defeabceb27fe22c40cdb94c95e901bc7a /changes
parenta0a4f8ae5d94a667ad431e487e08bc935a6989b5 (diff)
downloadtor-498287b3c340739bede9a3fa95ea23b6ae650bf3.tar.gz
tor-498287b3c340739bede9a3fa95ea23b6ae650bf3.zip
Add compatibility function for fgets(3).
This patch adds the `tor_fgets()` function to our compatibility layer. `tor_fgets()` adds an additional check for whether the error-bit have been enabled for the given file stream, if that is the case and `errno` is set to `EAGAIN` we make sure that we always return NULL. Unfortunately `fgets(3)` behaves differently on different versions of the C library. See: https://bugs.torproject.org/21416 See: https://bugs.torproject.org/20988
Diffstat (limited to 'changes')
-rw-r--r--changes/bug209884
1 files changed, 4 insertions, 0 deletions
diff --git a/changes/bug20988 b/changes/bug20988
new file mode 100644
index 0000000000..b1d73f08e7
--- /dev/null
+++ b/changes/bug20988
@@ -0,0 +1,4 @@
+ o Minor bugfixes (portability):
+ - Add Tor compatibility function for fgets(3) due to inconsistency of
+ returned values in different supported C libraries. This fixes unit test
+ failures reported on FreeBSD. Fixes bug 20988.