diff options
author | Rob Landley <rob@landley.net> | 2022-10-09 01:54:00 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2022-10-09 01:54:00 -0500 |
commit | 56d89e51ba9e57c2e9731c82399686cdb941c3d2 (patch) | |
tree | dd08ee74edb86aad7561cf3d0b7ad0f897f3f4ea | |
parent | a1f1cfdf0431c43939ef1295e0044f8fc8447e74 (diff) | |
download | toybox-56d89e51ba9e57c2e9731c82399686cdb941c3d2.tar.gz |
Tomasz Sterna reports that NULL options annoy the syscall,
which happens loading dependency modules.
-rw-r--r-- | toys/pending/modprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/modprobe.c b/toys/pending/modprobe.c index 45f8ea21..1c4b7fe6 100644 --- a/toys/pending/modprobe.c +++ b/toys/pending/modprobe.c @@ -444,7 +444,7 @@ static void go_probe(struct module_s *m) } // none of above is true insert the module. errno = 0; - rc = ins_mod(fn, options); + rc = ins_mod(fn, options ? : ""); if (FLAG(v)) printf("loaded %s '%s': %s\n", fn, options, strerror(errno)); if (errno == EEXIST) rc = 0; |