s3:utils: Make strings const passed to password_change() in smbpasswd
authorAndreas Schneider <asn@samba.org>
Fri, 18 Aug 2017 14:13:15 +0000 (16:13 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 28 Aug 2017 09:04:15 +0000 (11:04 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12975

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
(cherry picked from commit 41a31a71abe144362fc7483fabba39aafa866373)

source3/utils/smbpasswd.c

index 6eb2deb7a3b4322cdf1e6eb3eb3ce3426ca5f8ef..b0e08cc0e58bde3632b672b8ae970b43a4e1423d 100644 (file)
@@ -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;