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 used to be commit f8a2b032a7
)
This commit is contained in:
parent
a369f0ecaf
commit
87e2396be9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user