mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
don't allow both add and delete user to be set at the same time
This commit is contained in:
parent
93034985e0
commit
9db84de46a
@ -319,10 +319,13 @@ static int process_root(int argc, char *argv[])
|
|||||||
argv += optind;
|
argv += optind;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
* Ensure both add/delete user are not set
|
||||||
* Ensure add/delete user and either remote machine or join domain are
|
* Ensure add/delete user and either remote machine or join domain are
|
||||||
* not both set.
|
* not both set.
|
||||||
*/
|
*/
|
||||||
if((local_flags & (LOCAL_ADD_USER|LOCAL_DELETE_USER)) && ((remote_machine != NULL) || joining_domain)) {
|
if(((local__flags & (LOCAL_ADD_USER|LOCAL_DELETE_USER)) == (LOCAL_ADD_USER|LOCAL_DELETE_USER)) ||
|
||||||
|
((local_flags & (LOCAL_ADD_USER|LOCAL_DELETE_USER)) &&
|
||||||
|
((remote_machine != NULL) || joining_domain))) {
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user