]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/busybox/busybox-1.00/below.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / busybox / busybox-1.00 / below.patch
1 Index: modutils/modprobe.c
2 ===================================================================
3 RCS file: /var/cvs/busybox/modutils/modprobe.c,v
4 retrieving revision 1.41
5 diff -u -r1.41 modprobe.c
6 --- busybox/modutils/modprobe.c 24 Sep 2004 09:18:55 -0000      1.41
7 +++ busybox/modutils/modprobe.c 29 Dec 2004 11:56:07 -0000
8 @@ -357,6 +357,41 @@
9                                         }
10                                 }
11                         }
12 +                       else if ((strncmp (buffer, "below", 5) == 0) && isspace (buffer[5])) {
13 +                               char *mod, *deps;
14 +                               if (parse_tag_value (buffer + 6, &mod, &deps)) {
15 +                                       struct dep_t *dt;
16 +
17 +                                       for (dt = first; dt; dt = dt->m_next) {
18 +                                               if (strcmp (dt->m_name, mod) == 0)
19 +                                                       break;
20 +                                       }
21 +                                       if (dt) {
22 +                                               char *pp;
23 +                                               char *name;
24 +
25 +                                               pp = name = deps;
26 +
27 +                                               for (;;) {
28 +                                                       while (*pp != 0 && !isspace (*pp))
29 +                                                               pp++;
30 +                                                       if (isspace (*pp))
31 +                                                               *(pp++) = 0;
32 +                                                       
33 +                                                       dt->m_depcnt++;
34 +                                                       dt->m_deparr = (char **) xrealloc (dt->m_deparr,
35 +                                                                                          sizeof (char *) * dt->m_depcnt);
36 +                                                       dt->m_deparr[dt->m_depcnt - 1] = bb_xstrdup (name);
37 +
38 +                                                       while (isspace (*pp))
39 +                                                               pp++;
40 +                                                       name = pp;
41 +                                                       if (*pp == 0)
42 +                                                               break;
43 +                                               }
44 +                                       }
45 +                               }
46 +                       }
47                 }
48         }
49         close ( fd );