diff options
author | James Peach <jpeach@samba.org> | 2006-11-07 17:18:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:15:42 -0500 |
commit | 9a51fba71c5fa7082c331e1a78a98638d9aa06cf (patch) | |
tree | 1da45efeda82d1a27e4f4665b4c1d0272f02f8ed /source/lib | |
parent | 02a0ac0bacafe91e4fa3ca0cae2f05a25215efbc (diff) | |
download | samba-9a51fba71c5fa7082c331e1a78a98638d9aa06cf.tar.gz samba-9a51fba71c5fa7082c331e1a78a98638d9aa06cf.tar.xz samba-9a51fba71c5fa7082c331e1a78a98638d9aa06cf.zip |
r19626: Coalesce usage of DUMP_CORE. Fix formatting on chdir error message
in core dump path.
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/fault.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/lib/fault.c b/source/lib/fault.c index dc8c276d02c..b632a5c82fa 100644 --- a/source/lib/fault.c +++ b/source/lib/fault.c @@ -160,12 +160,13 @@ void dump_core_setup(const char *progname) exit(1); } +#if DUMP_CORE if (*corepath != '\0') { /* The chdir might fail if we dump core before we finish * processing the config file. */ if (chdir(corepath) != 0) { - DEBUG(0, ("unable to change to %s", corepath)); + DEBUG(0, ("unable to change to %s\n", corepath)); DEBUGADD(0, ("refusing to dump core\n")); exit(1); } @@ -182,5 +183,9 @@ void dump_core_setup(const char *progname) #endif abort(); + +#else /* DUMP_CORE */ + exit(1); +#endif /* DUMP_CORE */ } |