1 |
commit: 5f1daa6f30849d95db1f6b4b84abdc9645db3f94 |
2 |
Author: Doug Freed <dwfreed <AT> mtu <DOT> edu> |
3 |
AuthorDate: Fri Aug 26 19:23:54 2016 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 26 19:31:59 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=5f1daa6f |
7 |
|
8 |
modules-load: handle comments better |
9 |
|
10 |
This handles comments without a trailing space after the comment |
11 |
character. |
12 |
|
13 |
Reported-By: josef64 |
14 |
|
15 |
init.d/modules-load.in | 4 ++-- |
16 |
1 file changed, 2 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/init.d/modules-load.in b/init.d/modules-load.in |
19 |
index 0f80396..2387a8d 100644 |
20 |
--- a/init.d/modules-load.in |
21 |
+++ b/init.d/modules-load.in |
22 |
@@ -44,8 +44,8 @@ load_modules() |
23 |
[ -z "$file" ] && return 0 |
24 |
while read m x; do |
25 |
case $m in |
26 |
- \;) continue ;; |
27 |
- \#) continue ;; |
28 |
+ \;*) continue ;; |
29 |
+ \#*) continue ;; |
30 |
*) modules="$modules $m" |
31 |
;; |
32 |
esac |