1 diff --git a/CHANGELOG b/CHANGELOG
2 index c29d577..c486a7b 100644
6 - fix LDAP_URI server selection.
7 - add authentication option for using an external credential cache.
8 - expand support for the "%" hack.
9 +- fix to quoting for exports gathered by hosts map.
11 18/06/2007 autofs-5.0.2
12 -----------------------
13 diff --git a/modules/lookup_hosts.c b/modules/lookup_hosts.c
14 index 1ef420e..70b13a7 100644
15 --- a/modules/lookup_hosts.c
16 +++ b/modules/lookup_hosts.c
17 @@ -179,9 +179,14 @@ int lookup_mount(struct autofs_point *ap, const char *name, int name_len, void *
19 pthread_cleanup_push(cache_lock_cleanup, mc);
20 mapent_len = strlen(me->mapent);
21 - mapent = alloca(mapent_len + 1);
23 - strcpy(mapent, me->mapent);
24 + mapent = alloca(mapent_len + 3);
26 + /* Add quotes to keep the parser happy */
28 + strcpy(mapent + 1, me->mapent);
29 + mapent[mapent_len + 1] = '"';
30 + mapent[mapent_len + 2] = '\0';
32 pthread_cleanup_pop(0);