Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
add read_file_to_str_from_fifo which is used by read_file_to_str
if the file happens to be one. change file_status() to return FN_FILE if st_mode matches S_IFIFO so that init_key_from_file() will read from a FIFO.
- Loading branch information
Showing
with
70 additions
and 1 deletion.
- +45 −1 src/common/util.c
- +2 −0 src/common/util.h
- +23 −0 src/test/test_util.c
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters