summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source3/auth/proto.h2
-rw-r--r--source3/auth/user_util.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/proto.h b/source3/auth/proto.h
index 9f4e47af9a..da3c0996a2 100644
--- a/source3/auth/proto.h
+++ b/source3/auth/proto.h
@@ -356,7 +356,7 @@ void debug_unix_user_token(int dbg_class, int dbg_lev, uid_t uid, gid_t gid,
bool map_username(TALLOC_CTX *ctx, const char *user_in, char **p_user_out);
bool user_in_netgroup(TALLOC_CTX *ctx, const char *user, const char *ngname);
-bool user_in_list(TALLOC_CTX *ctx, const char *user,const char **list);
+bool user_in_list(TALLOC_CTX *ctx, const char *user, const char * const *list);
/* The following definitions come from auth/user_krb5.c */
struct PAC_LOGON_INFO;
diff --git a/source3/auth/user_util.c b/source3/auth/user_util.c
index 70ab5ade65..ded2184051 100644
--- a/source3/auth/user_util.c
+++ b/source3/auth/user_util.c
@@ -188,7 +188,7 @@ bool user_in_netgroup(TALLOC_CTX *ctx, const char *user, const char *ngname)
and netgroup lists.
****************************************************************************/
-bool user_in_list(TALLOC_CTX *ctx, const char *user,const char **list)
+bool user_in_list(TALLOC_CTX *ctx, const char *user, const char * const *list)
{
if (!list || !*list)
return False;
@@ -399,7 +399,7 @@ bool map_username(TALLOC_CTX *ctx, const char *user_in, char **p_user_out)
}
if (strchr_m(dosname,'*') ||
- user_in_list(ctx, user_in, (const char **)dosuserlist)) {
+ user_in_list(ctx, user_in, (const char * const *)dosuserlist)) {
DEBUG(3,("Mapped user %s to %s\n",user_in,unixname));
mapped_user = True;