summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-03-18 01:48:11 +0000
committerJeremy Allison <jra@samba.org>2003-03-18 01:48:11 +0000
commitd332200c254b4bbf27461a37f9655bf42faa2b3a (patch)
treef749eb110346913b8cb63cb07f4616bb32288f65 /source3/lib/util.c
parenta8eaea53ed70ef998a510b6dcf0288462207f9a0 (diff)
downloadsamba-d332200c254b4bbf27461a37f9655bf42faa2b3a.tar.gz
samba-d332200c254b4bbf27461a37f9655bf42faa2b3a.tar.bz2
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.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index bdf67a515a..4216310335 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);