diff options
author | Herb Lewis <herb@samba.org> | 2002-04-26 16:16:14 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2002-04-26 16:16:14 +0000 |
commit | 19bacddd52f4099fcad39e666e6eba26d16b4863 (patch) | |
tree | 0c0575439402dd13bd19e0842223a434b7d6c4ea /source3/utils/pdbedit.c | |
parent | 63050a8d165b0ab5dbb55e692d0ca13086cf110c (diff) | |
download | samba-19bacddd52f4099fcad39e666e6eba26d16b4863.tar.gz samba-19bacddd52f4099fcad39e666e6eba26d16b4863.tar.bz2 samba-19bacddd52f4099fcad39e666e6eba26d16b4863.zip |
fix compile error
(This used to be commit c64a57a6106bfd766679ac89837881ed9592409b)
Diffstat (limited to 'source3/utils/pdbedit.c')
-rw-r--r-- | source3/utils/pdbedit.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index 2cbc9eb71d..bf52d08989 100644 --- a/source3/utils/pdbedit.c +++ b/source3/utils/pdbedit.c @@ -411,6 +411,7 @@ int main (int argc, char **argv) static char *backend_out = NULL; static char *logon_script = NULL; static char *profile_path = NULL; + static int new_debuglevel = -1; struct pdb_context *in; poptContext pc; @@ -430,7 +431,7 @@ int main (int argc, char **argv) {"delete", 'x',POPT_ARG_VAL,&delete_user,1,"delete user",NULL}, {"import", 'i',POPT_ARG_STRING,&backend_in,0,"use different passdb backend",NULL}, {"export", 'e',POPT_ARG_STRING,&backend_out,0,"export user accounts to backend", NULL}, - {"debuglevel",'D',POPT_ARG_INT,&DEBUGLEVEL,0,"set debuglevel",NULL}, + {"debuglevel",'D',POPT_ARG_INT,&new_debuglevel,0,"set debuglevel",NULL}, {0,0,0,0} }; @@ -451,6 +452,10 @@ int main (int argc, char **argv) while((opt = poptGetNextOpt(pc)) != -1); + if (new_debuglevel != -1) { + DEBUGLEVEL = new_debuglevel; + } + setparms = (full_name || home_dir || home_drive || logon_script || profile_path); if (((add_user?1:0) + (delete_user?1:0) + (list_users?1:0) + (import?1:0) + (setparms?1:0)) + (backend_out?1:0) > 1) { |