Skip to contentSkip to conversation

nfs/001: ignore the header in nfs4_getfacl output

PATCH New Scott Mayhew 1 participant 1 message Jul 6, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs/001: ignore the header in nfs4_getfacl output

nfs4-acl-tools commit 6630629bb661 ("nfs4_getfacl: Add support to accept more paths") added a header to the nfs4_getfacl output. Make sure the test is only counting the number of ACEs.

---
 tests/nfs/001 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/nfs/001 +1 -1
index d7a79cb0..23d5c98c 100755
@@ -55,7 +55,7 @@ $NFS4_SETFACL_PROG -S $acltest.list $acltest.file
 
 # Dump ACL, expect correct number of ACE entries
 $NFS4_GETFACL_PROG $acltest.file >>$seqres.full 2>&1
-$NFS4_GETFACL_PROG $acltest.file | wc -l
+$NFS4_GETFACL_PROG $acltest.file | grep -c "^A"
 
 # success, all done
 status=0
Signature · 1 line
2.14.4