The branch, master has been updated
       via  7887d99... s3-net: Fix Bug #7417. 'net rpc user password' can set 
the wrong password.
      from  3addebe... tevent: Added a description for tevent queue.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 7887d99a60387e93ce5ce4a3bfe9117939d1e4c8
Author: Günther Deschner <[email protected]>
Date:   Sat May 8 02:16:37 2010 +0200

    s3-net: Fix Bug #7417. 'net rpc user password' can set the wrong password.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source3/utils/net_rpc.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 0fd693e..253e977 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -845,8 +845,11 @@ static int rpc_user_password(struct net_context *c, int 
argc, const char **argv)
                if (ret == -1) {
                        return -1;
                }
-               u1003.usri1003_password = getpass(prompt);
+               u1003.usri1003_password = talloc_strdup(c, getpass(prompt));
                SAFE_FREE(prompt);
+               if (u1003.usri1003_password == NULL) {
+                       return -1;
+               }
        }
 
        status = NetUserSetInfo(c->opt_host, argv[0], 1003, (uint8_t *)&u1003, 
&parm_err);


-- 
Samba Shared Repository

Reply via email to