1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r8679: only call fault setup once (thanks to andrew for pointing this out)

This commit is contained in:
Andrew Tridgell 2005-07-21 12:20:18 +00:00 committed by Gerald (Jerry) Carter
parent acf8c8fd49
commit f8a2b032a7

View File

@ -49,9 +49,6 @@ static void popt_common_callback(poptContext con,
{
const char *pname;
/* setup for panics */
fault_setup(poptGetInvocationName(con));
if (reason == POPT_CALLBACK_REASON_POST) {
/* Hook any 'every Samba program must do this, after
* the smb.conf is setup' functions here */
@ -69,6 +66,10 @@ static void popt_common_callback(poptContext con,
pname++;
if (reason == POPT_CALLBACK_REASON_PRE) {
/* setup for panics */
fault_setup(poptGetInvocationName(con));
/* and logging */
setup_logging(pname, DEBUG_STDOUT);
return;
}