[CVS] samba-cvs
[Top] [All Lists]

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

Subject: svn commit: samba r6256 - in branches/SAMBA_3_0/source/utils: .
From: jra@xxxxxxxxx
Date: Fri, 8 Apr 2005 22:58:08 +0000 (GMT)
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@xxxxxxxxx>
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);
                }
        }

<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: samba r6256 - in branches/SAMBA_3_0/source/utils: ., jra <=