git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ff1ffc
)
Do not segfault if corepath is not set up properly
author
Volker Lendecke
<vl@samba.org>
Fri, 13 Jun 2008 09:56:40 +0000
(11:56 +0200)
committer
Michael Adam
<obnox@samba.org>
Fri, 27 Jun 2008 14:57:12 +0000
(16:57 +0200)
(This used to be commit
41d1b9541ccb802f01f12038b3b81853b3b7c32d
)
source3/lib/fault.c
patch
|
blob
|
history
diff --git
a/source3/lib/fault.c
b/source3/lib/fault.c
index 1964955f1b814693cc1b99dd527413af60d59de6..d4c1142937984673af64acd8e6df47d4b98bf17a 100644
(file)
--- a/
source3/lib/fault.c
+++ b/
source3/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.