The Samba-Bugzilla – Attachment 5687 Details for
Bug 7417
Error while changing password with the net utility
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for master
patch (text/plain), 953 bytes, created by
Guenther Deschner
on 2010-05-07 19:18:40 UTC
(
hide
)
Description:
patch for master
Filename:
MIME Type:
Creator:
Guenther Deschner
Created:
2010-05-07 19:18:40 UTC
Size:
953 bytes
patch
obsolete
>From ad1b4e4957af3fb8bed0e654184d55332ffea541 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org> >Date: Sat, 8 May 2010 02:16:37 +0200 >Subject: [PATCH] s3-net: Fix Bug #7417. 'net rpc user password' can set the wrong password. > >Guenther >--- > source3/utils/net_rpc.c | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > >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); >-- >1.6.6.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7417
: 5687 |
5688
|
5689