Call modprobe with absolute path
authorNed Bass <bass6@llnl.gov>
Fri, 22 Oct 2010 18:13:16 +0000 (11:13 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 Oct 2010 19:39:57 +0000 (12:39 -0700)
commit6ee71f5ce39885969f986f3092fed00f41667963
treed84837142dddffd226a3c5efbf5f4be4942caf42
parentd877ac6bfefaf09f0399888df1fc88bd4b4419d0
Call modprobe with absolute path

Some sudo configurations may not include /sbin in the PATH.
libzfs_load_module() currently does not call modprobe with an absolute path, so
it may fail under such configurations if called under sudo.  This change adds
the absolute path to modprobe so we no longer rely on how PATH is set.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
lib/libzfs/libzfs_util.c