Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: fix config-check log file truncate on /dev/null etc
Prior to a config-check, the log file is truncated (to 0 size). If /dev/null (or any other non-regular) file was specified, truncate() gives error EINVAL, which was not being handled in the code. This commit stops keepalived logging an error if the output file specified (or the default /dev/null) is a character device. Signed-off-by: Quentin Armitage <[email protected]>
- Loading branch information