wok-next annotate module-init-tools/stuff/depmod.u @ rev 3436

module-init-tools/depmod: force full path for busybox modprobe
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 13 16:45:39 2009 +0200 (2009-06-13)
parents
children 71c7aacfbbb2
rev   line source
pascal@3436 1 --- module-init-tools-3.9/depmod.c
pascal@3436 2 +++ module-init-tools-3.9/depmod.c
pascal@3436 3 @@ -395,16 +395,16 @@
pascal@3436 4 {
pascal@3436 5 struct module *i;
pascal@3436 6
pascal@3436 7 + (void) dirname; /* force full path for busybox modprobe */
pascal@3436 8 for (i = modules; i; i = i->next) {
pascal@3436 9 struct list_head *j, *tmp;
pascal@3436 10 order_dep_list(i, i);
pascal@3436 11
pascal@3436 12 - fprintf(out, "%s:", compress_path(i->pathname, dirname));
pascal@3436 13 + fprintf(out, "%s:", i->pathname);
pascal@3436 14 list_for_each_safe(j, tmp, &i->dep_list) {
pascal@3436 15 struct module *dep
pascal@3436 16 = list_entry(j, struct module, dep_list);
pascal@3436 17 - fprintf(out, " %s",
pascal@3436 18 - compress_path(dep->pathname, dirname));
pascal@3436 19 + fprintf(out, " %s", dep->pathname);
pascal@3436 20 list_del_init(j);
pascal@3436 21 }
pascal@3436 22 fprintf(out, "\n");