mirror of
https://github.com/samba-team/samba.git
synced 2025-02-22 05:57:43 +03:00
fix compile error
This commit is contained in:
parent
edfafa1d40
commit
c64a57a610
@ -411,6 +411,7 @@ int main (int argc, char **argv)
|
|||||||
static char *backend_out = NULL;
|
static char *backend_out = NULL;
|
||||||
static char *logon_script = NULL;
|
static char *logon_script = NULL;
|
||||||
static char *profile_path = NULL;
|
static char *profile_path = NULL;
|
||||||
|
static int new_debuglevel = -1;
|
||||||
|
|
||||||
struct pdb_context *in;
|
struct pdb_context *in;
|
||||||
poptContext pc;
|
poptContext pc;
|
||||||
@ -430,7 +431,7 @@ int main (int argc, char **argv)
|
|||||||
{"delete", 'x',POPT_ARG_VAL,&delete_user,1,"delete user",NULL},
|
{"delete", 'x',POPT_ARG_VAL,&delete_user,1,"delete user",NULL},
|
||||||
{"import", 'i',POPT_ARG_STRING,&backend_in,0,"use different passdb backend",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},
|
{"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}
|
{0,0,0,0}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -451,6 +452,10 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
while((opt = poptGetNextOpt(pc)) != -1);
|
while((opt = poptGetNextOpt(pc)) != -1);
|
||||||
|
|
||||||
|
if (new_debuglevel != -1) {
|
||||||
|
DEBUGLEVEL = new_debuglevel;
|
||||||
|
}
|
||||||
|
|
||||||
setparms = (full_name || home_dir || home_drive || logon_script || profile_path);
|
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) {
|
if (((add_user?1:0) + (delete_user?1:0) + (list_users?1:0) + (import?1:0) + (setparms?1:0)) + (backend_out?1:0) > 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user