]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] config: fix error message when config file is not found
authorWilly Tarreau <w@1wt.eu>
Sun, 6 Dec 2009 12:10:44 +0000 (13:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 6 Dec 2009 12:21:18 +0000 (13:21 +0100)
commitd289240085a5aaed6f403c9512008ccf16fab0a6
treee424fff85757b9da7fc03404b9eb406c7c92816a
parentf175a6d6b123c21a2479d472a510fc51fc0497f2
[BUG] config: fix error message when config file is not found

Cameron Simpson reported an annoying case where haproxy simply reports
"Error(s) found in configuration file" when the file is not found or
not readable.

Fortunately the parsing function still returns -1 in case of open
error, so we're able to detect the issue from the caller and report
the corresponding errno message.
(cherry picked from commit c438242878c8bdabffaef62dd2859920cc3e7d26)
src/haproxy.c