mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Fixed double function issue with the UDF merge.
Merge of xfs-cmds-melb:slinx:20266a by kenmcd. Changed _filter_aces function call to _filter_aces_notypes
This commit is contained in:
@@ -321,15 +321,15 @@ acl3=`_create_n_aces $num_aces_post`
|
|||||||
|
|
||||||
echo "1 below xfs acl max"
|
echo "1 below xfs acl max"
|
||||||
chacl $acl1 largeaclfile
|
chacl $acl1 largeaclfile
|
||||||
_acl_list largeaclfile | _filter_aces
|
_acl_list largeaclfile | _filter_aces_notypes
|
||||||
|
|
||||||
echo "xfs acl max"
|
echo "xfs acl max"
|
||||||
chacl $acl2 largeaclfile
|
chacl $acl2 largeaclfile
|
||||||
_acl_list largeaclfile | _filter_aces
|
_acl_list largeaclfile | _filter_aces_notypes
|
||||||
|
|
||||||
echo "1 above xfs acl max"
|
echo "1 above xfs acl max"
|
||||||
chacl $acl3 largeaclfile
|
chacl $acl3 largeaclfile
|
||||||
_acl_list largeaclfile | _filter_aces
|
_acl_list largeaclfile | _filter_aces_notypes
|
||||||
|
|
||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
+7
-20
@@ -98,11 +98,18 @@ _filter_aces()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/^user/ { if ($2 in idlist) sub($2, idlist[$2]); print; next}
|
/^user/ { if ($2 in idlist) sub($2, idlist[$2]); print; next}
|
||||||
|
/^u/ { if ($2 in idlist) sub($2, idlist[$2]); print; next}
|
||||||
/^default:user/ { if ($3 in idlist) sub($3, idlist[$3]); print; next}
|
/^default:user/ { if ($3 in idlist) sub($3, idlist[$3]); print; next}
|
||||||
{print}
|
{print}
|
||||||
'
|
'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_filter_aces_notypes()
|
||||||
|
{
|
||||||
|
tr '\[' '\012' | tr ']' '\012' | tr ',' '\012' | _filter_aces|\
|
||||||
|
sed -e 's/u:/user:/' -e 's/g:/group:/' -e 's/o:/other:/' -e 's/m:/mask:/'
|
||||||
|
}
|
||||||
|
|
||||||
# test if acl code will work
|
# test if acl code will work
|
||||||
#
|
#
|
||||||
_acl_requirements()
|
_acl_requirements()
|
||||||
@@ -124,26 +131,6 @@ _acl_requirements()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# filter user ace names to user ids
|
|
||||||
#
|
|
||||||
_filter_aces()
|
|
||||||
{
|
|
||||||
tr '\[' '\012' |\
|
|
||||||
tr ']' '\012' |\
|
|
||||||
tr ',' '\012' |\
|
|
||||||
$AWK_PROG '
|
|
||||||
BEGIN {
|
|
||||||
FS=":"
|
|
||||||
while ( getline <"/etc/passwd" > 0 ) {
|
|
||||||
idlist[$1] = $3
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/^u/ { if ($2 in idlist) sub($2, idlist[$2]); print; next}
|
|
||||||
{print}
|
|
||||||
' |\
|
|
||||||
sed -e 's/u:/user:/' -e 's/g:/group:/' -e 's/o:/other:/' -e 's/m:/mask:/'
|
|
||||||
}
|
|
||||||
|
|
||||||
_list_acl()
|
_list_acl()
|
||||||
{
|
{
|
||||||
file=$1
|
file=$1
|
||||||
|
|||||||
Reference in New Issue
Block a user