diff options
author | Luke Leighton <lkcl@samba.org> | 1997-10-24 13:58:21 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-10-24 13:58:21 +0000 |
commit | 5b15b17fc6da0e2b496822638edf566dedf3efde (patch) | |
tree | 24934b1b9790b4ba512498c8632ebf7ec92a4a89 | |
parent | 6d301d2cfd25b18ba18685d926d7a5bc08695b6d (diff) | |
download | samba-5b15b17fc6da0e2b496822638edf566dedf3efde.tar.gz samba-5b15b17fc6da0e2b496822638edf566dedf3efde.tar.xz samba-5b15b17fc6da0e2b496822638edf566dedf3efde.zip |
default server_name if NIS server is unavailable should be the local
machine, not a NULL string.
-rw-r--r-- | source/lib/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index 204d530e0bb..0003b8b42d5 100644 --- a/source/lib/util.c +++ b/source/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) { |