1 #!/bin/sh /usr/share/dpatch/dpatch-run
2 ## 061_multi_parse_fix.dpatch
8 diff -Naur .B/modules/parse_sun.c .A/modules/parse_sun.c
9 --- .B/modules/parse_sun.c 2005-04-05 12:42:42.000000000 +0000
10 +++ .A/modules/parse_sun.c 2007-01-07 21:36:35.000000000 +0000
13 const char *p = (char *) mapent;
15 - int first_chunk = 0;
16 + int not_first_chunk = 0;
19 + crit("check_is_multi: unexpected NULL map entry pointer");
23 + /* If first character is "/" it's a multi-mount */
30 * path that begins with '/' indicates a mutil-mount
34 + if (not_first_chunk) {
35 if (*p == '/' || *p == '-') {
39 * after which it's a multi mount.
41 p += chunklen(p, check_colon(p));
51 - path = dequote(p, l = chunklen(p, 0));
54 + path = dequote("/", 1);
56 + path = dequote(p, l = chunklen(p, 0));
59 error(MODPREFIX "out of memory");