mirror of
https://github.com/samba-team/samba.git
synced 2025-01-28 17:47:29 +03:00
Cosmetic: Fix a const warning.
Volker (This used to be commit c814f7c43db9700ec08a30c45521181c754df247)
This commit is contained in:
parent
e869727420
commit
e2f355c7ea
@ -846,18 +846,19 @@ static BOOL print_domain_groups(const char *domain)
|
|||||||
|
|
||||||
static BOOL wbinfo_set_auth_user(char *username)
|
static BOOL wbinfo_set_auth_user(char *username)
|
||||||
{
|
{
|
||||||
char *password;
|
const char *password;
|
||||||
|
char *p;
|
||||||
fstring user, domain;
|
fstring user, domain;
|
||||||
|
|
||||||
/* Separate into user and password */
|
/* Separate into user and password */
|
||||||
|
|
||||||
parse_wbinfo_domain_user(username, domain, user);
|
parse_wbinfo_domain_user(username, domain, user);
|
||||||
|
|
||||||
password = strchr(user, '%');
|
p = strchr(user, '%');
|
||||||
|
|
||||||
if (password) {
|
if (p != NULL) {
|
||||||
*password = 0;
|
*p = 0;
|
||||||
password++;
|
password = p+1;
|
||||||
} else {
|
} else {
|
||||||
char *thepass = getpass("Password: ");
|
char *thepass = getpass("Password: ");
|
||||||
if (thepass) {
|
if (thepass) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user