1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r21: Ensure 'net' follows the behaviour of all other samba client tools,

and honours the 'netbios name' in the smb.conf.
This commit is contained in:
Andrew Bartlett 2004-04-05 08:31:58 +00:00 committed by Gerald (Jerry) Carter
parent dfac69be4f
commit 591047c20a

View File

@ -141,7 +141,7 @@ NTSTATUS connect_to_ipc(struct cli_state **c, struct in_addr *server_ip,
}
}
nt_status = cli_full_connection(c, opt_requester_name, server_name,
nt_status = cli_full_connection(c, NULL, server_name,
server_ip, opt_port,
"IPC$", "IPC",
opt_user_name, opt_workgroup,
@ -750,10 +750,8 @@ static struct functable net_func[] = {
}
}
if (!opt_requester_name) {
static fstring myname;
get_myname(myname);
opt_requester_name = myname;
if (opt_requester_name) {
set_global_myname(opt_requester_name);
}
if (!opt_user_name && getenv("LOGNAME")) {