]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zfs-functions.in: in_mtab() always returns 1
authorAlexey Smirnoff <fling-@users.noreply.github.com>
Tue, 20 Aug 2019 23:26:19 +0000 (23:26 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 20 Aug 2019 23:26:19 +0000 (16:26 -0700)
commitc759b33a519ca5f0d5bce51501bd4230134d4b25
tree9c9b874cdd2bb407ca9982e9cb93a680e66cfbb0
parent325d288c5d536227010ff4dfcf66df89f123d166
 zfs-functions.in: in_mtab() always returns 1

$fs used with the wrong sed command where should be $mntpnt instead
to match a variable exported by read_mtab()

The fix is mostly to reuse the sed command found in read_mtab()

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Signed-off-by: Alexey Smirnoff <fling@member.fsf.org>
Closes #9168
etc/init.d/zfs-functions.in