svn commit: samba r6256 - in branches/SAMBA_3_0/source/utils: .

jra at samba.org jra at samba.org
Fri Apr 8 22:58:08 GMT 2005


Author: jra
Date: 2005-04-08 22:58:07 +0000 (Fri, 08 Apr 2005)
New Revision: 6256

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6256

Log:
Fix fprintf errors in smbpasswd. Fix for bug #2585 Ulf H?\195?\164rnhammar <metaur at telia.com>
Jeremy.

Modified:
   branches/SAMBA_3_0/source/utils/smbpasswd.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/smbpasswd.c
===================================================================
--- branches/SAMBA_3_0/source/utils/smbpasswd.c	2005-04-08 22:46:31 UTC (rev 6255)
+++ branches/SAMBA_3_0/source/utils/smbpasswd.c	2005-04-08 22:58:07 UTC (rev 6256)
@@ -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