From: Luis Henriques <lhenriques@suse.com>
To: fstests@vger.kernel.org
Cc: Luis Henriques <lhenriques@suse.com>, Filipe Manana <fdmanana@suse.com>
Subject: [PATCH 1/2] generic/319: use numeric user and group IDs in getfacl
Date: Fri, 17 May 2019 12:24:21 +0100 [thread overview]
Message-ID: <20190517112422.20671-2-lhenriques@suse.com> (raw)
In-Reply-To: <20190517112422.20671-1-lhenriques@suse.com>
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>
---
tests/generic/319 | 4 ++--
tests/generic/319.out | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/generic/319 b/tests/generic/319
index 02973d90cbe2..504cf627537b 100755
--- a/tests/generic/319
+++ b/tests/generic/319
@@ -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
diff --git a/tests/generic/319.out b/tests/generic/319.out
index b090bfaf6a04..bf6b4bc80462 100644
--- a/tests/generic/319.out
+++ b/tests/generic/319.out
@@ -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::---
next prev parent reply other threads:[~2019-05-17 11:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-17 11:24 [PATCH 0/2] Use numeric user and group IDs in getfacl Luis Henriques
2019-05-17 11:24 ` Luis Henriques [this message]
2019-05-17 15:15 ` [PATCH 1/2] generic/319: use " Filipe Manana
2019-05-17 11:24 ` [PATCH 2/2] overlay/023: " Luis Henriques
2019-05-18 3:55 ` Murphy Zhou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190517112422.20671-2-lhenriques@suse.com \
--to=lhenriques@suse.com \
--cc=fdmanana@suse.com \
--cc=fstests@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox