1 diff -urN pcmcia-cs-3.2.8-old/cardmgr/cardmgr.c pcmcia-cs-3.2.8-new/cardmgr/cardmgr.c
2 --- pcmcia-cs-3.2.8-old/cardmgr/cardmgr.c 2004-05-21 08:39:36.000000000 +0200
3 +++ pcmcia-cs-3.2.8-new/cardmgr/cardmgr.c 2006-03-29 20:27:03.000000000 +0200
7 strcpy(cmd, "insmod ");
8 - if (strchr(mod, '/') != NULL)
9 - sprintf(cmd+7, "%s/%s.o", modpath, mod);
11 - sprintf(cmd+7, "%s/pcmcia/%s.o", modpath, mod);
12 + sprintf(cmd+7, "%s/%s.o", modpath, mod);
13 if (access(cmd+7, R_OK) != 0) {
14 syslog(LOG_NOTICE, "module %s not available", cmd+7);
20 - if (try_modprobe(mod, opts) != 0)
21 + if (try_modprobe(mod, opts) != 0) {
22 try_insmod(mod, opts);
25 - if (try_insmod(mod, opts) != 0)
26 + if (try_insmod(mod, opts) != 0) {
27 try_modprobe(mod, opts);
34 /* remove kernel modules in inverse order */
35 for (i = 0; i < card->bindings; i++) {
36 - for (j = dev[i]->modules-1; j >= 0; j--)
37 + for (j = dev[i]->modules-1; j >= 0; j--) {
38 remove_module(dev[i]->module[j]);
42 /* Remove any MTD's bound to this socket */