config: allow chacl to be in any directory in $PATH

Previously, xfstests checked for chacl in only a few hard-coded
directory: /bin, /sbin, and /usr/bin.  Use set_prog_path to allow
chacl to be in any directory in $PATH, which is how we find the
executable path for most other executables.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Theodore Ts'o
2014-08-13 11:20:52 +10:00
committed by Dave Chinner
parent e4549032fb
commit 1202207197
2 changed files with 2 additions and 3 deletions
+1 -3
View File
@@ -165,9 +165,7 @@ _filter_aces_notypes()
_require_acls()
{
if [ ! -x /bin/chacl -a ! -x /usr/bin/chacl -a ! -x /sbin/chacl ]; then
_notrun "chacl command not found"
fi
[ -n $CHACL_PROG ] || _notrun "chacl command not found"
#
# Test if chacl is able to list ACLs on the target filesystems. On really