commit | 2206d7f763a1c9cf88f77d0ab19e410d17749361 | [log] [tgz] |
---|---|---|
author | Michal Marek <mmarek@suse.cz> | Fri Jun 17 16:04:15 2016 +0200 |
committer | Lucas De Marchi <lucas.demarchi@intel.com> | Tue Jun 21 18:00:20 2016 -0300 |
tree | ac98a3fbca522a67781230e833c82293f177eeaa | |
parent | d46136bb59c46609ee8050636f0681f2831d2225 [diff] |
libkmod: Handle long lines in /proc/modules kmod_module_new_from_loaded() calls fgets with a 4k buffer. When a module such as usbcore is used by too many modules, the rest of the line is considered a beginning of another lines and we eventually get errors like these from lsmod: libkmod: kmod_module_get_holders: could not open '/sys/module/100,/holders': No such file or directory together with bogus entries in the output. In kmod_module_get_size, the problem does not affect functionality, but the line numbers in error messages will be wrong. Signed-off-by: Michal Marek <mmarek@suse.com>
This is a mirror only. Please see README file for more information.