mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
s3: fix build of pdbedit and net_sam. Guenther, please check. Signed-off-by: Bo Yang <boyang@samba.org>
This commit is contained in:
parent
2821f5abf5
commit
73e96935c3
@ -452,7 +452,7 @@ static int net_sam_policy_set(struct net_context *c, int argc, const char **argv
|
||||
const char *account_policy = NULL;
|
||||
uint32 value = 0;
|
||||
uint32 old_value = 0;
|
||||
int field;
|
||||
enum pdb_policy_type field;
|
||||
char *endptr;
|
||||
|
||||
if (argc != 2 || c->display_usage) {
|
||||
@ -462,7 +462,7 @@ static int net_sam_policy_set(struct net_context *c, int argc, const char **argv
|
||||
}
|
||||
|
||||
account_policy = argv[0];
|
||||
field = account_policy_name_to_fieldnum(account_policy);
|
||||
field = account_policy_name_to_typenum(account_policy);
|
||||
|
||||
if (strequal(argv[1], "forever") || strequal(argv[1], "never")
|
||||
|| strequal(argv[1], "off")) {
|
||||
@ -519,7 +519,7 @@ static int net_sam_policy_show(struct net_context *c, int argc, const char **arg
|
||||
{
|
||||
const char *account_policy = NULL;
|
||||
uint32 old_value;
|
||||
int field;
|
||||
enum pdb_policy_type field;
|
||||
|
||||
if (argc != 1 || c->display_usage) {
|
||||
d_fprintf(stderr, "usage: net sam policy show"
|
||||
@ -528,7 +528,7 @@ static int net_sam_policy_show(struct net_context *c, int argc, const char **arg
|
||||
}
|
||||
|
||||
account_policy = argv[0];
|
||||
field = account_policy_name_to_fieldnum(account_policy);
|
||||
field = account_policy_name_to_typenum(account_policy);
|
||||
|
||||
if (field == 0) {
|
||||
const char **names;
|
||||
|
@ -1109,7 +1109,7 @@ int main (int argc, char **argv)
|
||||
/* account policy operations */
|
||||
if ((checkparms & BIT_ACCPOLICY) && !(checkparms & ~(BIT_ACCPOLICY + BIT_ACCPOLVAL))) {
|
||||
uint32 value;
|
||||
int field = account_policy_name_to_fieldnum(account_policy);
|
||||
enum pdb_policy_type field = account_policy_name_to_typenum(account_policy);
|
||||
if (field == 0) {
|
||||
const char **names;
|
||||
int count;
|
||||
|
Loading…
x
Reference in New Issue
Block a user