From: Andrew Tridgell Date: Wed, 23 Mar 2011 00:22:15 +0000 (+1100) Subject: s3-config: say which config file we failed to open X-Git-Tag: ldb-1.1.0~608 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7aef9c3fe01f7ebda8a76a4e849c61c21de8cac4;p=thirdparty%2Fsamba.git s3-config: say which config file we failed to open saves having to strace it to work that out --- diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 2aa896476f7..9796815b27f 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -851,7 +851,7 @@ static bool open_sockets(bool isdaemon, int port) DEBUGADD(0,("%s\n", COPYRIGHT_STARTUP_MESSAGE)); if (!lp_load_initial_only(get_dyn_CONFIGFILE())) { - DEBUG(0, ("error opening config file\n")); + DEBUG(0, ("error opening config file '%s'\n", get_dyn_CONFIGFILE())); exit(1); } diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 37c97049b81..17762e34c88 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -1034,7 +1034,7 @@ extern void build_options(bool screen); } if (!lp_load_initial_only(get_dyn_CONFIGFILE())) { - DEBUG(0, ("error opening config file\n")); + DEBUG(0, ("error opening config file '%s'\n", get_dyn_CONFIGFILE())); exit(1); } diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index 47d8be61783..86c328593a5 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -1318,7 +1318,7 @@ int main(int argc, char **argv, char **envp) DEBUGADD(0,("%s\n", COPYRIGHT_STARTUP_MESSAGE)); if (!lp_load_initial_only(get_dyn_CONFIGFILE())) { - DEBUG(0, ("error opening config file\n")); + DEBUG(0, ("error opening config file '%s'\n", get_dyn_CONFIGFILE())); exit(1); }