svn commit: samba r6257 - in trunk/source/utils: .
jra at samba.org
jra at samba.org
Fri Apr 8 22:58:18 GMT 2005
Author: jra
Date: 2005-04-08 22:58:12 +0000 (Fri, 08 Apr 2005)
New Revision: 6257
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6257
Log:
Fix fprintf errors in smbpasswd. Fix for bug #2585 Ulf H?\195?\164rnhammar <metaur at telia.com>
Jeremy.
Modified:
trunk/source/utils/smbpasswd.c
Changeset:
Modified: trunk/source/utils/smbpasswd.c
===================================================================
--- trunk/source/utils/smbpasswd.c 2005-04-08 22:58:07 UTC (rev 6256)
+++ trunk/source/utils/smbpasswd.c 2005-04-08 22:58:12 UTC (rev 6257)
@@ -282,7 +282,7 @@
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 @@
if(*msg_str)
printf(msg_str);
if(*err_str)
- fprintf(stderr, err_str);
+ fprintf(stderr, "%s", err_str);
return ret;
}
@@ -503,7 +503,7 @@
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);
}
}
More information about the samba-cvs
mailing list