summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2013-01-04 16:17:39 -0500
committerIan Stakenvicius <axs@gentoo.org>2013-01-04 16:22:36 -0500
commit374546c2398cce814fdb904c807d3878df025c56 (patch)
tree5b971a9e4333781c2ca05fa7e16d6df9e4c4e757 /src/udev
parent8638965ac29853404154c3cd165e50056756c391 (diff)
Fix bugs in execv() calls to modprobe
Change the execv() call to an execvp() call so that --with-modprobe="modprobe" is supported; also added the command as argv[0] in the call to execvp(), which fixes the failures when 'modprobe' is a symlink to kmod Signed off by ryao
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udev-builtin-kmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-builtin-kmod.c b/src/udev/udev-builtin-kmod.c
index 89c7ab0b77..300090a5b9 100644
--- a/src/udev/udev-builtin-kmod.c
+++ b/src/udev/udev-builtin-kmod.c
@@ -68,7 +68,7 @@ static int load_module(struct udev *udev, char *const alias)
kmod_module_unref_list(list);
return err;
#else
- char * const argv[] = { "-bq", alias, 0 };
+ char * const argv[] = { MODPROBE, "-bq", alias, 0 };
return execute_command(MODPROBE, argv);
#endif
}