]> git.ipfire.org Git - thirdparty/util-linux.git/commit - disk-utils/mkfs.c
mkfs: drop hardcoded search path
authorMike Frysinger <vapier@gentoo.org>
Sun, 12 Apr 2015 09:06:51 +0000 (05:06 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 27 Apr 2015 08:28:44 +0000 (10:28 +0200)
commit07b5156790f329835d7351aa4e803f3d623cde5d
tree89a2bb7cc099fed3028e12f169d6a2dc9cea4987
parentff229538902c4dd6d0a552d6a4223f077789dee2
mkfs: drop hardcoded search path

Rather than maintain a hardcoded search path for looking up tools and
override the user's PATH env setting, respect whatever the user has.
This matches the convention of just about every other tool out there.

It might break on systems that don't have /sbin in their PATH and they
try to run /sbin/mkfs directly, but so be it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
disk-utils/mkfs.8
disk-utils/mkfs.c