diff options
author | Jeremy Allison <jra@samba.org> | 2003-03-18 01:48:11 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-03-18 01:48:11 +0000 |
commit | d332200c254b4bbf27461a37f9655bf42faa2b3a (patch) | |
tree | f749eb110346913b8cb63cb07f4616bb32288f65 /source3/lib/util.c | |
parent | a8eaea53ed70ef998a510b6dcf0288462207f9a0 (diff) | |
download | samba-d332200c254b4bbf27461a37f9655bf42faa2b3a.tar.gz samba-d332200c254b4bbf27461a37f9655bf42faa2b3a.tar.xz samba-d332200c254b4bbf27461a37f9655bf42faa2b3a.zip |
Merge in the developer string options from HEAD. We need to ensure 3.0
is as stable as possible in the string department and some pain now
will help later :-).
Jeremy.
(This used to be commit 86e3eddac698d90f4666b8492b4603a4efbbd67b)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r-- | source3/lib/util.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index bdf67a515ae..42163103359 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1398,9 +1398,23 @@ gid_t nametogid(const char *name) void smb_panic(const char *why) { - char *cmd = lp_panic_action(); + char *cmd; int result; +#ifdef DEVELOPER + { + extern char *global_clobber_region_function; + extern unsigned int global_clobber_region_line; + + if (global_clobber_region_function) { + DEBUG(0,("smb_panic: clobber_region() last called from [%s(%u)]\n", + global_clobber_region_function, + global_clobber_region_line)); + } + } +#endif + + cmd = lp_panic_action(); if (cmd && *cmd) { DEBUG(0, ("smb_panic(): calling panic action [%s]\n", cmd)); result = system(cmd); |