]> git.ipfire.org Git - thirdparty/tor.git/commit
Handle FIFOs in read_file_to_str
authormeejah <meejah@meejah.ca>
Wed, 12 Sep 2012 19:26:34 +0000 (13:26 -0600)
committerNick Mathewson <nickm@torproject.org>
Mon, 17 Sep 2012 14:02:24 +0000 (10:02 -0400)
commitd64bf286a175f590fc07f51f49584cf246eac9b2
tree54374a24ab830b07ba7bbb9b2e50c2938fe38349
parent99cb9696ac617a42a78d9ebfa3f169fd8e4a3d88
Handle FIFOs in read_file_to_str

add read_file_to_str_until_eof which is used by read_file_to_str
if the file happens to be a FIFO.

change file_status() to return FN_FILE if st_mode matches S_IFIFO
(on not-windows) so that init_key_from_file() will read from a FIFO.
src/common/util.c
src/common/util.h
src/test/test_util.c