summaryrefslogtreecommitdiff
path: root/source3/utils/smbcacls.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/smbcacls.c')
-rw-r--r--source3/utils/smbcacls.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index 6f5bcc4476..4803da9f33 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -74,7 +74,7 @@ BOOL got_policy_hnd;
/* Open cli connection and policy handle */
-static BOOL open_policy_hnd(void)
+static BOOL cacls_open_policy_hnd(void)
{
creds.pwd.null_pwd = 1;
@@ -117,7 +117,7 @@ static void SidToString(fstring str, DOM_SID *sid)
/* Ask LSA to convert the sid to a name */
- if (!open_policy_hnd() ||
+ if (!cacls_open_policy_hnd() ||
cli_lsa_lookup_sids(&lsa_cli, &pol, 1, sid, &names, &types,
&num_names) != NT_STATUS_NOPROBLEMO ||
!names || !names[0]) {
@@ -145,7 +145,7 @@ static BOOL StringToSid(DOM_SID *sid, char *str)
return string_to_sid(sid, str);
}
- if (!open_policy_hnd() ||
+ if (!cacls_open_policy_hnd() ||
cli_lsa_lookup_names(&lsa_cli, &pol, 1, &str, &sids, &types,
&num_sids) != NT_STATUS_NOPROBLEMO) {
result = False;
@@ -815,9 +815,8 @@ You can string acls together with spaces, commas or newlines\n\
extern FILE *dbf;
int opt;
char *p;
- int seed;
static pstring servicesf = CONFIGFILE;
- struct cli_state *cli;
+ struct cli_state *cli=NULL;
enum acl_mode mode;
char *the_acl = NULL;
enum chown_mode change_mode = REQUEST_NONE;
@@ -863,8 +862,6 @@ You can string acls together with spaces, commas or newlines\n\
}
}
- seed = time(NULL);
-
while ((opt = getopt(argc, argv, "U:nhS:D:A:M:C:G:t")) != EOF) {
switch (opt) {
case 'U':