s3-config: say which config file we failed to open
authorAndrew Tridgell <tridge@samba.org>
Wed, 23 Mar 2011 00:22:15 +0000 (11:22 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 23 Mar 2011 01:19:29 +0000 (12:19 +1100)
saves having to strace it to work that out

source3/nmbd/nmbd.c
source3/smbd/server.c
source3/winbindd/winbindd.c

index 2aa896476f74e2f92f65bf962a54368250b33d14..9796815b27f025f1158d5d478d1e51fd1f44b577 100644 (file)
@@ -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);
        }
 
index 37c97049b813a15253991f5554b3a7b0b063c616..17762e34c885e9986e7cd92b7bf7c5931b2f5ef2 100644 (file)
@@ -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);
        }
 
index 47d8be617839eb1fbd7e94010d7070040b6e94c1..86c328593a579b00dde33847c1002dc8a1e86143 100644 (file)
@@ -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);
        }