aboutsummaryrefslogtreecommitdiff
path: root/modutils/modprobe.c
AgeCommit message (Collapse)Author
2003-11-14Steven Seeger writes:Eric Andersen
Hey guys. I've found a bug in modprobe where it generates bad strings and makes sytem calls with them. The following patch seems to have fixed the problem. It is rather inherited elsewhere, as there seems to be incorrect entries in the list which results in more dependencies than really exist for a given call to mod_process. But, this patch prevents the bad text from going to the screen. You will notice there are cases where lcmd goes unmodified before calling system. Please consider the following patch. Thanks. -Steve
2003-09-08Busybox modprobe has a couple of irritating quirks:Glenn L McGrath
- attempting to modprobe a module that is already loaded yields "Failed to load module", whereas modutils quietly ignores such a request. - if a module genuinely can't be loaded due to missing symbols or similar problems, modprobe doesn't produce any useful diagnostics because the output from insmod has been redirected to /dev/null. Here's a patch to address these issue Patch by Philip Blundell
2003-06-20Fall back to looking in /lib/modules/modules.dep ifEric Andersen
/lib/modules/<kernel version>/modules.dep is missing
2003-06-20Patch from Andrew Dennison:Eric Andersen
I've had some issues with modprobe which I reported a few months ago. This is still an issue so I decided to sort it out. The attached diff includes the changes against the unstable cvs tree that work for me. Changes are: mod_process() will report success if the module at the head of the list loads successfully. It will also report success if any module unloads successfully. The net result being that modprobe will succeed in the cases outlined below. I've also added error reporting to modprobe -r. Previously it would silently fail (but report success) if the module could not be unloaded. Andrew
2003-03-19Major coreutils update.Manuel Novoa III
2002-12-03print an error message if we can't load a moduleRobert Griebl
2002-08-23for some baffling reason tinycc insists that i change this 0 to NULLAaron Lehmann
2002-08-05- updated a few copyright/left file headersRobert Griebl
- documented most of my 0.61 changes in the ChangeLog
2002-07-29Fixed a bug that I had introduced with the new "options" handling.Robert Griebl
2002-07-26modprobe now also uses "options" from /etc/modules.confRobert Griebl
2002-07-02David Frascone <dave@frascone.com> noticed two problems. First, modprobe wasEric Andersen
trying to call 'insmod -q', which wasn't supported. Secondly, when modprobe was fed blank lines from modules.dep, we ended up calling xstrndup(ptr, -1), which with suitably bad results. David provided a patch to catch the blank lines, and I have added insmod -q support. So modprobe should work again. -Erik
2002-06-04Cleaned up Erik's fgets -> read patch and fixed a buffer overflowRobert Griebl
2002-06-04Avoid stack munching stdio implementations.Eric Andersen
-Erik
2002-06-02Fixed a realloc bug found by Martin VolfRobert Griebl
2002-05-28Added support for /etc/modules.conf parsingRobert Griebl
for now only the 'alias' entries are evaluated
2002-05-22Some cleanups, some size reductions and some buffer overflow checksRobert Griebl
Most of it based on ideas from vodz
2002-05-14Complete rewrite to support stack loading/unloading with properRobert Griebl
handling of duplicates in the dependencies list.
2002-05-03Patch from Robert Griebl <griebl@gmx.de> to support modprobe -r properly,Eric Andersen
merged in with the latest and greatest.
2002-05-03Make verbose and show_only work as expectedEric Andersen
-Erik
2002-04-26Reworked by Robert Griebl <griebl@gmx.de> to support properEric Andersen
module dependancies.
2001-11-27Add space before module name (noted by Ron Yorston).Matt Kraai
2001-07-25Cleanup some warnings and a really obvious bug.Eric Andersen
-Erik
2001-07-22An initial modproble implementation. Quite suboptimal still,Eric Andersen
but it does work...