]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
generic/319: use numeric user and group IDs in getfacl
authorLuis Henriques <lhenriques@suse.com>
Fri, 17 May 2019 11:24:21 +0000 (12:24 +0100)
committerEryu Guan <guaneryu@gmail.com>
Thu, 23 May 2019 08:55:50 +0000 (16:55 +0800)
This prevents test failures if cases where, e.g., /etc/group doesn't
include the 'root' group ID.

Cc: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/319
tests/generic/319.out

index 02973d90cbe2d05a24a8ee3d7050ce446cff5982..504cf627537b35773131a3fd78013bccb829b251 100755 (executable)
@@ -44,10 +44,10 @@ _scratch_mount
 
 mkdir $SCRATCH_MNT/testdir
 setfacl -d --set u::rwx,g::rwx,o::- $SCRATCH_MNT/testdir
-getfacl --absolute-names $SCRATCH_MNT/testdir | _filter_scratch
+getfacl -n --absolute-names $SCRATCH_MNT/testdir | _filter_scratch
 
 mkdir $SCRATCH_MNT/testdir/testsubdir
-getfacl --absolute-names $SCRATCH_MNT/testdir/testsubdir | _filter_scratch
+getfacl -n --absolute-names $SCRATCH_MNT/testdir/testsubdir | _filter_scratch
 
 # success, all done
 status=0
index b090bfaf6a04d11aae6cf5f08ecd7fb61034d2e7..bf6b4bc804625a096fd2018fca27440fc11cd7b4 100644 (file)
@@ -1,7 +1,7 @@
 QA output created by 319
 # file: SCRATCH_MNT/testdir
-# owner: root
-# group: root
+# owner: 0
+# group: 0
 user::rwx
 group::r-x
 other::r-x
@@ -10,8 +10,8 @@ default:group::rwx
 default:other::---
 
 # file: SCRATCH_MNT/testdir/testsubdir
-# owner: root
-# group: root
+# owner: 0
+# group: 0
 user::rwx
 group::rwx
 other::---