[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-3039-g41d1b95
Michael Adam
obnox at samba.org
Fri Jun 27 15:09:58 GMT 2008
The branch, v3-3-test has been updated
via 41d1b9541ccb802f01f12038b3b81853b3b7c32d (commit)
from f4c37dbe2c986fb7bfe510cdff3b4a9fbc06d079 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit 41d1b9541ccb802f01f12038b3b81853b3b7c32d
Author: Volker Lendecke <vl at samba.org>
Date: Fri Jun 13 11:56:40 2008 +0200
Do not segfault if corepath is not set up properly
-----------------------------------------------------------------------
Summary of changes:
source/lib/fault.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/lib/fault.c b/source/lib/fault.c
index 1964955..d4c1142 100644
--- a/source/lib/fault.c
+++ b/source/lib/fault.c
@@ -188,6 +188,11 @@ void dump_core_setup(const char *progname)
become_root();
}
+ if (corepath == NULL) {
+ DEBUG(0, ("Can not dump core: corepath not set up\n"));
+ exit(1);
+ }
+
if (*corepath != '\0') {
/* The chdir might fail if we dump core before we finish
* processing the config file.
--
Samba Shared Repository
More information about the samba-cvs
mailing list