diff options
author | Jeremy Allison <jra@samba.org> | 2005-04-08 22:58:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:32 -0500 |
commit | 046bea52eb0bc22ce3139fe3939c4a9536bf11fd (patch) | |
tree | 6915f4450957bbf712f6defc6a97a3b7eeb27b18 | |
parent | f168ebafb3ce6de98d9c441801244ddb8d1a16e1 (diff) | |
download | samba-046bea52eb0bc22ce3139fe3939c4a9536bf11fd.tar.gz samba-046bea52eb0bc22ce3139fe3939c4a9536bf11fd.tar.bz2 samba-046bea52eb0bc22ce3139fe3939c4a9536bf11fd.zip |
r6256: Fix fprintf errors in smbpasswd. Fix for bug #2585 Ulf Härnhammar <metaur@telia.com>
Jeremy.
(This used to be commit 3dfa6c40fc726ddf38d4cfc6e0604ceed0035d18)
-rw-r--r-- | source3/utils/smbpasswd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 90c3ce4d2e..836a161021 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/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); } } |