common/rc: accept "localdomain" to mean YP/NIS disabled
authorEric Biggers <ebiggers@google.com>
Tue, 28 Feb 2017 22:09:36 +0000 (14:09 -0800)
committerEryu Guan <eguan@redhat.com>
Wed, 1 Mar 2017 03:40:04 +0000 (11:40 +0800)
commit8cb6ef62cc42881557be524e2f4a77dbf612587d
tree57afb31ea1c3b70a79bc7974eb35207c9ca9dc4b
parent161ba4c1b7946844dd19b1849dfe9d4b1f15a4b8
common/rc: accept "localdomain" to mean YP/NIS disabled

When asked to 'cat' the passwd or group files, currently xfstests runs
the 'domainname' program to get what the kernel thinks the domainname
is.  It seems that traditionally this has been "(none)" if YP/NIS is not
in use.  However, Android devices use a different convention which is to
set the domainname to "localdomain".  Therefore, this patch updates
xfstests to accept both conventions to indicate YP/NIS disabled.  This
stops a number of tests from failing when run on Android.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/rc