mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
default server_name if NIS server is unavailable should be the local
machine, not a NULL string.
(This used to be commit 5b15b17fc6
)
This commit is contained in:
parent
be0f2e14b5
commit
a60ad7bef3
@ -3621,8 +3621,8 @@ char *automount_server(char *user_name)
|
|||||||
char *nis_map = (char *)lp_nis_home_map_name();
|
char *nis_map = (char *)lp_nis_home_map_name();
|
||||||
int home_server_len;
|
int home_server_len;
|
||||||
|
|
||||||
/* set to default of no string */
|
/* set to default of local machine */
|
||||||
server_name[0] = 0;
|
pstrcpy(server_name, local_machine);
|
||||||
|
|
||||||
if ((nis_error = yp_get_default_domain(&nis_domain)) != 0)
|
if ((nis_error = yp_get_default_domain(&nis_domain)) != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user