2009/1/1 Kyle McMartin <k...@infradead.org>: > Hrm, we're carrying a fairly large patch against irqbalance that deals > with cpu parsing in Fedora that hasn't made it upstream for some reason. > I'll poke... > > In the meantime: > > Index: cputree.c > =================================================================== > --- cputree.c (revision 19) > +++ cputree.c (working copy) > @@ -319,7 +319,8 @@ > return; > do { > entry = readdir(dir); > - if (entry && strlen(entry->d_name)>3 && > strstr(entry->d_name,"cpu")) { > + if (entry && strlen(entry->d_name)>3 && > memcmp(entry->d_name,"cpu",3) == 0 && > + isdigit(entry->d_name[3])) > char new_path[PATH_MAX]; > sprintf(new_path, "/sys/devices/system/cpu/%s", > entry->d_name); > do_one_cpu(new_path); >
That's exactly the same way I've fixed this (I was about to post it here). Thanks anyway:) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org