From 41a31a71abe144362fc7483fabba39aafa866373 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 18 Aug 2017 16:13:15 +0200 Subject: [PATCH] s3:utils: Make strings const passed to password_change() in smbpasswd BUG: https://bugzilla.samba.org/show_bug.cgi?id=12975 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlet --- source3/utils/smbpasswd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index ec162fdbfb0..5c75f48189d 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -243,8 +243,9 @@ static char *prompt_for_new_password(bool stdin_get) Change a password either locally or remotely. *************************************************************/ -static NTSTATUS password_change(const char *remote_mach, char *username, - char *old_passwd, char *new_pw, +static NTSTATUS password_change(const char *remote_mach, + const char *username, + const char *old_passwd, const char *new_pw, int local_flags) { NTSTATUS ret; -- 2.34.1