diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-03-20 00:28:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:58:52 -0500 |
commit | 18cddd580e04344e05593d9f63beb9ead53cfab2 (patch) | |
tree | 7e49547cc37afcf2f3b974bf21d3bfd3ebcdfb20 /source4/lib/util/fault.c | |
parent | 679a993329fddc320e4c67d2b66b5874c189b142 (diff) | |
download | samba-18cddd580e04344e05593d9f63beb9ead53cfab2.tar.gz samba-18cddd580e04344e05593d9f63beb9ead53cfab2.tar.bz2 samba-18cddd580e04344e05593d9f63beb9ead53cfab2.zip |
r14575: Move some path-related functions to libsamba-config so libsamba-util
doesn't have to depend on the lp_* functions.
(This used to be commit f97df7d90a41b77a9edd2d6bdc47c27bf1b6bb07)
Diffstat (limited to 'source4/lib/util/fault.c')
-rw-r--r-- | source4/lib/util/fault.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/util/fault.c b/source4/lib/util/fault.c index ff44b8a292..8b447851dc 100644 --- a/source4/lib/util/fault.c +++ b/source4/lib/util/fault.c @@ -109,18 +109,19 @@ _PUBLIC_ void call_backtrace(void) #endif } +_PUBLIC_ const char *panic_action = NULL; + /** Something really nasty happened - panic ! **/ _PUBLIC_ void smb_panic(const char *why) { - const char *cmd = lp_panic_action(); int result; - if (cmd && *cmd) { + if (panic_action && *panic_action) { char pidstr[20]; char cmdstring[200]; - safe_strcpy(cmdstring, cmd, sizeof(cmdstring)); + safe_strcpy(cmdstring, panic_action, sizeof(cmdstring)); snprintf(pidstr, sizeof(pidstr), "%u", getpid()); all_string_sub(cmdstring, "%PID%", pidstr, sizeof(cmdstring)); if (progname) { |