diff options
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/modprobe.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c index c82eaa8d8..51ede9204 100644 --- a/modutils/modprobe.c +++ b/modutils/modprobe.c | |||
@@ -252,6 +252,15 @@ static int FAST_FUNC config_file_action(const char *filename, | |||
252 | if (base[0] == '.') | 252 | if (base[0] == '.') |
253 | goto error; | 253 | goto error; |
254 | 254 | ||
255 | /* "man modprobe.d" from kmod version 22 suggests | ||
256 | * that we shouldn't recurse into /etc/modprobe.d/dir/ | ||
257 | * _subdirectories_: | ||
258 | */ | ||
259 | if (depth > 1) | ||
260 | return SKIP; /* stop recursing */ | ||
261 | //TODO: instead, can use dirAction in recursive_action() to SKIP dirs | ||
262 | //on depth == 1 level. But that's more code... | ||
263 | |||
255 | /* In dir recursion, skip files that do not end with a ".conf" | 264 | /* In dir recursion, skip files that do not end with a ".conf" |
256 | * depth==0: read_config("modules.{symbols,alias}") must work, | 265 | * depth==0: read_config("modules.{symbols,alias}") must work, |
257 | * "include FILE_NOT_ENDING_IN_CONF" must work too. | 266 | * "include FILE_NOT_ENDING_IN_CONF" must work too. |