From: Andreas Schneider Date: Fri, 18 Aug 2017 14:13:15 +0000 (+0200) Subject: s3:utils: Make strings const passed to password_change() in smbpasswd X-Git-Tag: tdb-1.3.15~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=41a31a71abe144362fc7483fabba39aafa866373;p=thirdparty%2Fsamba.git 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 --- 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;