1 diff -Nurp autofs-4.1.4.orig/modules/parse_sun.c autofs-4.1.4/modules/parse_sun.c
2 --- autofs-4.1.4.orig/modules/parse_sun.c 2005-04-05 20:42:42.000000000 +0800
3 +++ autofs-4.1.4/modules/parse_sun.c 2005-04-25 10:00:13.000000000 +0800
4 @@ -766,7 +766,16 @@ static int check_is_multi(const char *ma
6 const char *p = (char *) mapent;
9 + int not_first_chunk = 0;
12 + crit("check_is_multi: unexpected NULL map entry pointer");
16 + /* If first character is "/" it's a multi-mount */
22 @@ -779,7 +788,7 @@ static int check_is_multi(const char *ma
23 * path that begins with '/' indicates a mutil-mount
27 + if (not_first_chunk) {
28 if (*p == '/' || *p == '-') {
31 @@ -796,7 +805,7 @@ static int check_is_multi(const char *ma
32 * after which it's a multi mount.
34 p += chunklen(p, check_colon(p));
40 @@ -883,7 +892,12 @@ int parse_mount(const char *root, const
44 - path = dequote(p, l = chunklen(p, 0));
47 + path = dequote("/", 1);
49 + path = dequote(p, l = chunklen(p, 0));
52 error(MODPREFIX "out of memory");