summaryrefslogtreecommitdiff
path: root/source3/utils/smbpasswd.c
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2002-01-07 21:32:22 +0000
committerHerb Lewis <herb@samba.org>2002-01-07 21:32:22 +0000
commitf1256e847e6820c29f8bc74db4609d8aa282a1a1 (patch)
treeef8ffff0a67d9d129e950259df11f803c8a05d48 /source3/utils/smbpasswd.c
parentbff833e76af390557428ba6aabdbc635b2c120e9 (diff)
downloadsamba-f1256e847e6820c29f8bc74db4609d8aa282a1a1.tar.gz
samba-f1256e847e6820c29f8bc74db4609d8aa282a1a1.tar.bz2
samba-f1256e847e6820c29f8bc74db4609d8aa282a1a1.zip
merge changes from 2.2 branch to prevent smb.conf from changing debug level
of commands when specified on command line. (This used to be commit 39d6b31e14144a3ff4b992d4286b706147e58566)
Diffstat (limited to 'source3/utils/smbpasswd.c')
-rw-r--r--source3/utils/smbpasswd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index ca1fe377d0..6a20e71d96 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -20,6 +20,7 @@
#include "includes.h"
extern pstring global_myname;
+extern BOOL AllowDebugChange;
/*
* Next two lines needed for SunOS and don't
@@ -566,6 +567,8 @@ static int process_nonroot(int argc, char *argv[])
**********************************************************/
int main(int argc, char **argv)
{
+ AllowDebugChange = False;
+
#if defined(HAVE_SET_AUTH_PARAMETERS)
set_auth_parameters(argc, argv);
#endif /* HAVE_SET_AUTH_PARAMETERS */