diff options
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/Kbuild.src | 2 | ||||
-rw-r--r-- | modutils/depmod.c | 2 | ||||
-rw-r--r-- | modutils/insmod.c | 2 | ||||
-rw-r--r-- | modutils/lsmod.c | 2 | ||||
-rw-r--r-- | modutils/modinfo.c | 2 | ||||
-rw-r--r-- | modutils/modprobe-small.c | 2 | ||||
-rw-r--r-- | modutils/modprobe.c | 2 | ||||
-rw-r--r-- | modutils/modutils-24.c | 2 | ||||
-rw-r--r-- | modutils/modutils.c | 10 | ||||
-rw-r--r-- | modutils/modutils.h | 2 | ||||
-rw-r--r-- | modutils/rmmod.c | 2 |
11 files changed, 17 insertions, 13 deletions
diff --git a/modutils/Kbuild.src b/modutils/Kbuild.src index a512f6066..1a7ac8751 100644 --- a/modutils/Kbuild.src +++ b/modutils/Kbuild.src | |||
@@ -2,7 +2,7 @@ | |||
2 | # | 2 | # |
3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> | 3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> |
4 | # | 4 | # |
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | 5 | # Licensed under GPLv2, see file LICENSE in this source tree. |
6 | 6 | ||
7 | lib-y:= | 7 | lib-y:= |
8 | 8 | ||
diff --git a/modutils/depmod.c b/modutils/depmod.c index 694f9ea5a..006a7bcc1 100644 --- a/modutils/depmod.c +++ b/modutils/depmod.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * Copyrihgt (c) 2008 Timo Teras <timo.teras@iki.fi> | 5 | * Copyrihgt (c) 2008 Timo Teras <timo.teras@iki.fi> |
6 | * Copyright (c) 2008 Vladimir Dronnikov | 6 | * Copyright (c) 2008 Vladimir Dronnikov |
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include "libbb.h" | 11 | #include "libbb.h" |
diff --git a/modutils/insmod.c b/modutils/insmod.c index b88446c10..17fc18c09 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (C) 2008 Timo Teras <timo.teras@iki.fi> | 5 | * Copyright (C) 2008 Timo Teras <timo.teras@iki.fi> |
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "libbb.h" | 10 | #include "libbb.h" |
diff --git a/modutils/lsmod.c b/modutils/lsmod.c index 97954c71f..9558a2510 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | 5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
6 | * Copyright (C) 2008 by Vladimir Dronnikov <dronnikov@gmail.com> | 6 | * Copyright (C) 2008 by Vladimir Dronnikov <dronnikov@gmail.com> |
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | #include "libbb.h" | 10 | #include "libbb.h" |
11 | #include "unicode.h" | 11 | #include "unicode.h" |
diff --git a/modutils/modinfo.c b/modutils/modinfo.c index 454a1b366..37ba77edf 100644 --- a/modutils/modinfo.c +++ b/modutils/modinfo.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * modinfo - retrieve module info | 3 | * modinfo - retrieve module info |
4 | * Copyright (c) 2008 Pascal Bellard | 4 | * Copyright (c) 2008 Pascal Bellard |
5 | * | 5 | * |
6 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | //applet:IF_MODINFO(APPLET(modinfo, _BB_DIR_SBIN, _BB_SUID_DROP)) | 9 | //applet:IF_MODINFO(APPLET(modinfo, _BB_DIR_SBIN, _BB_SUID_DROP)) |
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c index 0e1874ed4..05f2c34eb 100644 --- a/modutils/modprobe-small.c +++ b/modutils/modprobe-small.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * Copyright (c) 2008 Vladimir Dronnikov | 5 | * Copyright (c) 2008 Vladimir Dronnikov |
6 | * Copyright (c) 2008 Bernhard Reutner-Fischer (initial depmod code) | 6 | * Copyright (c) 2008 Bernhard Reutner-Fischer (initial depmod code) |
7 | * | 7 | * |
8 | * Licensed under GPLv2, see file LICENSE in this tarball for details. | 8 | * Licensed under GPLv2, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include "libbb.h" | 11 | #include "libbb.h" |
diff --git a/modutils/modprobe.c b/modutils/modprobe.c index 0a9424293..ab35628f4 100644 --- a/modutils/modprobe.c +++ b/modutils/modprobe.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * Copyright (c) 2008 Timo Teras <timo.teras@iki.fi> | 5 | * Copyright (c) 2008 Timo Teras <timo.teras@iki.fi> |
6 | * Copyright (c) 2008 Vladimir Dronnikov | 6 | * Copyright (c) 2008 Vladimir Dronnikov |
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | /* Note that unlike older versions of modules.dep/depmod (busybox and m-i-t), | 11 | /* Note that unlike older versions of modules.dep/depmod (busybox and m-i-t), |
diff --git a/modutils/modutils-24.c b/modutils/modutils-24.c index c42d3c0bb..7228954d6 100644 --- a/modutils/modutils-24.c +++ b/modutils/modutils-24.c | |||
@@ -55,7 +55,7 @@ | |||
55 | * Restructured (and partly rewritten) by: | 55 | * Restructured (and partly rewritten) by: |
56 | * Björn Ekwall <bj0rn@blox.se> February 1999 | 56 | * Björn Ekwall <bj0rn@blox.se> February 1999 |
57 | * | 57 | * |
58 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 58 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
59 | */ | 59 | */ |
60 | 60 | ||
61 | #include "libbb.h" | 61 | #include "libbb.h" |
diff --git a/modutils/modutils.c b/modutils/modutils.c index 850a8683b..565d0d22f 100644 --- a/modutils/modutils.c +++ b/modutils/modutils.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 2008 by Timo Teras <timo.teras@iki.fi> | 4 | * Copyright (C) 2008 by Timo Teras <timo.teras@iki.fi> |
5 | * | 5 | * |
6 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | #include "modutils.h" | 8 | #include "modutils.h" |
9 | 9 | ||
@@ -71,8 +71,12 @@ char* FAST_FUNC parse_cmdline_module_options(char **argv) | |||
71 | optlen = 0; | 71 | optlen = 0; |
72 | while (*++argv) { | 72 | while (*++argv) { |
73 | options = xrealloc(options, optlen + 2 + strlen(*argv) + 2); | 73 | options = xrealloc(options, optlen + 2 + strlen(*argv) + 2); |
74 | /* Spaces handled by "" pairs, but no way of escaping quotes */ | 74 | /* Older versions were enclosing space-containing *argv in "", |
75 | optlen += sprintf(options + optlen, (strchr(*argv, ' ') ? "\"%s\" " : "%s "), *argv); | 75 | * but both modprobe and insmod from module-init-tools 3.11.1 |
76 | * don't do this anymore. (As to extra trailing space, | ||
77 | * insmod adds it but modprobe does not. We do in both cases) | ||
78 | */ | ||
79 | optlen += sprintf(options + optlen, "%s ", *argv); | ||
76 | } | 80 | } |
77 | return options; | 81 | return options; |
78 | } | 82 | } |
diff --git a/modutils/modutils.h b/modutils/modutils.h index d46870ca6..863bc26d3 100644 --- a/modutils/modutils.h +++ b/modutils/modutils.h | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 2008 by Timo Teras <timo.teras@iki.fi> | 4 | * Copyright (C) 2008 by Timo Teras <timo.teras@iki.fi> |
5 | * | 5 | * |
6 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #ifndef MODUTILS_H | 9 | #ifndef MODUTILS_H |
diff --git a/modutils/rmmod.c b/modutils/rmmod.c index ee32dfdef..aa1bb01d6 100644 --- a/modutils/rmmod.c +++ b/modutils/rmmod.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | 5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
6 | * Copyright (C) 2008 Timo Teras <timo.teras@iki.fi> | 6 | * Copyright (C) 2008 Timo Teras <timo.teras@iki.fi> |
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include "libbb.h" | 11 | #include "libbb.h" |