forked from pool/s390-tools
Marcus Meissner
9b729e2acc
New package per "Factory first" policy. Please list me as bug owner and maintainer, if possible. OBS-URL: https://build.opensuse.org/request/show/459343 OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=1
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
Subject: [PATCH] [BZ 141695] chiucvallow: correct verification return code
|
|
From: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
|
|
|
|
Description: chiucvallow: correct verification return code
|
|
Symptom: When running test_chiucvallow.sh, the script is
|
|
failing to validate filter files with special
|
|
characters.
|
|
because the chiucvallow.in -V is
|
|
Problem: The chiucvallow -V is returning code 2 and for
|
|
this reason, the script gives an error message,
|
|
but the filter file is validated successfully
|
|
manually.
|
|
Solution: Correct the return code of chiucvallow to handle
|
|
verification failures correctly.
|
|
Reproduction: See Symptom.
|
|
Upstream-ID: -
|
|
Problem-ID: 141695
|
|
|
|
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
|
|
---
|
|
iucvterm/bin/chiucvallow.in | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/iucvterm/bin/chiucvallow.in
|
|
+++ b/iucvterm/bin/chiucvallow.in
|
|
@@ -115,7 +115,8 @@ verify_filter(){
|
|
|
|
printf "\n$PRG: Verification summary: verified=%d failed=%d size=%d bytes\n" \
|
|
$count $failed $fsize
|
|
- return 2
|
|
+
|
|
+ test $failed -eq 0 || return 2
|
|
}
|
|
|
|
#
|