]> git.ipfire.org Git - thirdparty/util-linux.git/commit
swapon: search for mkswap via PATH
authorMike Frysinger <vapier@gentoo.org>
Sun, 12 Apr 2015 09:06:52 +0000 (05:06 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 27 Apr 2015 08:28:44 +0000 (10:28 +0200)
commitf1bc59963fb2cf755fa1373c4f86fe8a6bdc2bf8
tree866ed6195e448d3167ff17fad440399b4dc359e8
parent07b5156790f329835d7351aa4e803f3d623cde5d
swapon: search for mkswap via PATH

Rather than hardcode /sbin/mkswap all the time, use a normal PATH search.
This matches the normal behavior of other tools, and makes local testing
easier.

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