← Commit list

1cd0d8600

Denys Vlasenko
Denys Vlasenko
2010-08-25
FAILED Duration: 334s

Subject

modutils: explain why we no longer quote params

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

modutils/modutils.c+5 -0
@@ -71,6 +71,11 @@ char* FAST_FUNC parse_cmdline_module_options(char **argv)
optlen = 0;
while (*++argv) {
options = xrealloc(options, optlen + 2 + strlen(*argv) + 2);
+ /* Older versions were enclosing space-containing *argv in "",
+ * but both modprobe and insmod from module-init-tools 3.11.1
+ * don't do this anymore. (As to extra trailing space,
+ * insmod adds it but modprobe does not. We do in both cases)
+ */
optlen += sprintf(options + optlen, "%s ", *argv);
}
return options;