summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/ugids-verify-auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'libshouldbeinlibc/ugids-verify-auth.c')
-rw-r--r--libshouldbeinlibc/ugids-verify-auth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libshouldbeinlibc/ugids-verify-auth.c b/libshouldbeinlibc/ugids-verify-auth.c
index 0e85b1b6..f6991aa2 100644
--- a/libshouldbeinlibc/ugids-verify-auth.c
+++ b/libshouldbeinlibc/ugids-verify-auth.c
@@ -65,9 +65,10 @@ server_verify_make_auth (const char *password,
{
auth_t auth;
struct svma_state *svma_state = hook;
- error_t (*check) (io_t server, uid_t id, const char *passwd, auth_t *auth) =
+ /* Mig routines don't use 'const' for passwd. */
+ error_t (*check) (io_t server, uid_t id, char *passwd, auth_t *auth) =
is_group ? password_check_group : password_check_user;
- error_t err = (*check) (svma_state->server, id, password, &auth);
+ error_t err = (*check) (svma_state->server, id, (char *) password, &auth);
if (! err)
/* PASSWORD checked out ok; the corresponding authentication is in AUTH. */