mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +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)
|
||||
{
|
||||
char *password;
|
||||
const char *password;
|
||||
char *p;
|
||||
fstring user, domain;
|
||||
|
||||
/* Separate into user and password */
|
||||
|
||||
parse_wbinfo_domain_user(username, domain, user);
|
||||
|
||||
password = strchr(user, '%');
|
||||
p = strchr(user, '%');
|
||||
|
||||
if (password) {
|
||||
*password = 0;
|
||||
password++;
|
||||
if (p != NULL) {
|
||||
*p = 0;
|
||||
password = p+1;
|
||||
} else {
|
||||
char *thepass = getpass("Password: ");
|
||||
if (thepass) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user