mirror of
https://github.com/samba-team/samba.git
synced 2025-02-16 09:57:47 +03:00
Try to bring libsmbclient in line with the new global_myname stuff
(This used to be commit e424b08050b44b1b52abd2af76b1b4dc8b100095)
This commit is contained in:
parent
6de53c6756
commit
2b41c63b61
@ -46,7 +46,6 @@ static int DLIST_CONTAINS(SMBCFILE * list, SMBCFILE *p) {
|
||||
}
|
||||
|
||||
extern BOOL in_client;
|
||||
extern pstring global_myname;
|
||||
|
||||
/*
|
||||
* Is the logging working / configfile read ?
|
||||
@ -2625,8 +2624,8 @@ SMBCCTX * smbc_init_context(SMBCCTX * context)
|
||||
* We try to get our netbios name from the config. If that fails we fall
|
||||
* back on constructing our netbios name from our hostname etc
|
||||
*/
|
||||
if (global_myname) {
|
||||
context->netbios_name = strdup(global_myname);
|
||||
if (global_myname()) {
|
||||
context->netbios_name = strdup(global_myname());
|
||||
}
|
||||
else {
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user