mirror of
https://git.savannah.gnu.org/git/inetutils.git
synced 2026-01-12 00:19:39 +08:00
Check two test requirements for inetd.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2015-05-02 Mats Erik Andersson <gnu@gisladisker.se>
|
||||
|
||||
* tests/inetd.sh (PASSWD, PWDDB, PROTOCOLS): New variables.
|
||||
Check for system files required by `inetd'. Skip test when
|
||||
not found, which can happen in incomplete chroots.
|
||||
|
||||
2015-04-17 Mats Erik Andersson <gnu@gisladisker.se>
|
||||
|
||||
* ftpd/conf.c, ftpd/ftpd.c, ifconfig/system/bsd.c,
|
||||
|
||||
@@ -37,6 +37,30 @@ USER=${USER:-`func_id_user`}
|
||||
#
|
||||
$need_mktemp || exit_no_mktemp
|
||||
|
||||
PASSWD=/etc/passwd
|
||||
PWDDB=/etc/pwd.db
|
||||
PROTOCOLS=/etc/protocols
|
||||
|
||||
# Keep the following two tests separate for better diagnosis!
|
||||
#
|
||||
if test ! -r $PROTOCOLS; then
|
||||
cat <<-EOT >&2
|
||||
This test requires the availability of "$PROTOCOLS",
|
||||
a file which can not be found in the current system.
|
||||
Therefore skipping this test.
|
||||
EOT
|
||||
exit 77
|
||||
fi
|
||||
|
||||
if test ! -r $PASSWD && test ! -r $PWDDB; then
|
||||
cat <<-EOT >&2
|
||||
This test requires availability of either "$PASSWD"
|
||||
or "$PWDDB". The requirement can not be met in the
|
||||
current system. Therefore skipping this test.
|
||||
EOT
|
||||
exit 77
|
||||
fi
|
||||
|
||||
# Execution control. Initialise early!
|
||||
#
|
||||
do_cleandir=false
|
||||
|
||||
Reference in New Issue
Block a user