[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] Test ftp-localhost incorrectly fails
From: |
Mats Erik Andersson |
Subject: |
Re: [bug-inetutils] Test ftp-localhost incorrectly fails |
Date: |
Tue, 29 Dec 2015 14:06:42 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Dear Ingo Brückl,
Torsdag den 24:e December 2015, klockan 15:15, skrev Ingo Brückl detta:
> Hi,
>
> in tests/ftp-localhost.sh (at line 50) it says:
>
> set -e
>
> value_v6only=`sysctl -a 2>/dev/null | $GREP v6only`
>
> will exit the test immediately with return code 1 if there is no v6only. As a
> result, the test will fail and the following
>
> if test -n "$value_v6only"; then
>
> has no effect at all.
A good observation; I have pushed an improved exception handler,
using a short circuit '|| true' as well as a detection of sysctl.
Do you know of a system which lacks a v6only system variable,
or did you encounter a system where sysctl is missing?
Your contribution is appreciated, best regards
Mats E Andersson