snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 2ed2914fa30ad5bbb61e13e560218cee1931c035
parent f5d3859e07e931e9dd230375f36d27a3b72699fc
Author: default <nobody@localhost>
Date:   Wed,  8 Feb 2023 15:03:35 +0100

Print errno in user file opening errors.

Diffstat:
Mdata.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/data.c b/data.c @@ -177,13 +177,13 @@ int user_open(snac *snac, const char *uid) srv_log(xs_fmt("cannot parse '%s'", key_file)); } else - srv_log(xs_fmt("error opening '%s'", key_file)); + srv_log(xs_fmt("error opening '%s' %d", key_file, errno)); } else srv_log(xs_fmt("cannot parse '%s'", cfg_file)); } else - srv_debug(2, xs_fmt("error opening '%s'", cfg_file)); + srv_debug(2, xs_fmt("error opening '%s' %d", cfg_file, errno)); } else srv_debug(1, xs_fmt("invalid user '%s'", uid));