diff options
-rw-r--r-- | source3/utils/smbcacls.c | 8 | ||||
-rw-r--r-- | source3/utils/smbcquotas.c | 11 |
2 files changed, 11 insertions, 8 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index cb82ad831e..4dc89aecb9 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -761,11 +761,13 @@ static struct cli_state *connect_one(const char *share) ctx=talloc_init("main"); - setlinebuf(stdout); - + /* set default debug level to 0 regardless of what smb.conf sets */ + setup_logging( "smbcacls", True ); + DEBUGLEVEL_CLASS[DBGC_ALL] = 1; dbf = x_stderr; + x_setbuf( x_stderr, NULL ); - setup_logging(argv[0],True); + setlinebuf(stdout); lp_load(dyn_CONFIGFILE,True,False,False); load_interfaces(); diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c index 0bd8755420..98d214706a 100644 --- a/source3/utils/smbcquotas.c +++ b/source3/utils/smbcquotas.c @@ -419,14 +419,15 @@ FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT", "SETSTRING" }, ZERO_STRUCT(qt); - setlinebuf(stdout); - + /* set default debug level to 1 regardless of what smb.conf sets */ + setup_logging( "smbcquotas", True ); + DEBUGLEVEL_CLASS[DBGC_ALL] = 1; dbf = x_stderr; + x_setbuf( x_stderr, NULL ); - fault_setup(NULL); - - setup_logging(argv[0],True); + setlinebuf(stdout); + fault_setup(NULL); lp_load(dyn_CONFIGFILE,True,False,False); load_interfaces(); |