summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-24 13:58:21 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-24 13:58:21 +0000
commita60ad7bef36e48227061d84c2297d2f396674a5d (patch)
treef7b9d2959d2123a831b1375ec54bb18533de8054 /source3/lib
parentbe0f2e14b5d32fe29b57e4c80f8da5c9cfa66e60 (diff)
downloadsamba-a60ad7bef36e48227061d84c2297d2f396674a5d.tar.gz
samba-a60ad7bef36e48227061d84c2297d2f396674a5d.tar.bz2
samba-a60ad7bef36e48227061d84c2297d2f396674a5d.zip
default server_name if NIS server is unavailable should be the local
machine, not a NULL string. (This used to be commit 5b15b17fc6da0e2b496822638edf566dedf3efde)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c4
1 files 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)
{