From 3dfa6c40fc726ddf38d4cfc6e0604ceed0035d18 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 8 Apr 2005 22:58:07 +0000 Subject: [PATCH] =?utf8?q?r6256:=20Fix=20fprintf=20errors=20in=20smbpasswd?= =?utf8?q?.=20Fix=20for=20bug=20#2585=20Ulf=20H=C3=A4rnhammar=20=20Jeremy.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- source/utils/smbpasswd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/utils/smbpasswd.c b/source/utils/smbpasswd.c index 90c3ce4d2e2..836a161021d 100644 --- a/source/utils/smbpasswd.c +++ b/source/utils/smbpasswd.c @@ -282,7 +282,7 @@ static BOOL password_change(const char *remote_mach, char *username, ret = remote_password_change(remote_mach, username, old_passwd, new_pw, err_str, sizeof(err_str)); if(*err_str) - fprintf(stderr, err_str); + fprintf(stderr, "%s", err_str); return ret; } @@ -292,7 +292,7 @@ static BOOL password_change(const char *remote_mach, char *username, if(*msg_str) printf(msg_str); if(*err_str) - fprintf(stderr, err_str); + fprintf(stderr, "%s", err_str); return ret; } @@ -503,7 +503,7 @@ static int process_nonroot(int local_flags) fstrcpy(user_name,pwd->pw_name); passwd_free(&pwd); } else { - fprintf(stderr, "smbpasswd: you don't exist - go away\n"); + fprintf(stderr, "smbpasswd: cannot lookup user name for uid %u\n", (unsigned int)getuid()); exit(1); } } -- 2.47.3