From a60ad7bef36e48227061d84c2297d2f396674a5d Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Fri, 24 Oct 1997 13:58:21 +0000 Subject: default server_name if NIS server is unavailable should be the local machine, not a NULL string. (This used to be commit 5b15b17fc6da0e2b496822638edf566dedf3efde) --- source3/lib/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/lib/util.c b/source3/lib/util.c index 204d530e0b..0003b8b42d 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -3621,8 +3621,8 @@ char *automount_server(char *user_name) char *nis_map = (char *)lp_nis_home_map_name(); int home_server_len; - /* set to default of no string */ - server_name[0] = 0; + /* set to default of local machine */ + pstrcpy(server_name, local_machine); if ((nis_error = yp_get_default_domain(&nis_domain)) != 0) { -- cgit