[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

PATCH [rhel-5.4 mkinitrd fips] don't exit with an error when --with-fips is used without -v



Hi,

We use "set -e" in certain parts to make sure we get all the
right bits in to do the fips checking, but it turns out that
vecho without -v trips over this, this patch fixes this.

Regards,

Hans

diff -up mkinitrd-5.1.19.6/mkinitrd.orig mkinitrd-5.1.19.6/mkinitrd
--- mkinitrd-5.1.19.6/mkinitrd.orig	2009-05-13 19:31:26.000000000 +0200
+++ mkinitrd-5.1.19.6/mkinitrd	2009-05-13 19:58:21.000000000 +0200
@@ -93,7 +93,9 @@ vecho()
         NONL="-n"
         shift
     fi
-    [ -n "$verbose" ] && echo $NONL "$@"
+    if [ -n "$verbose" ]; then
+        echo $NONL "$@"
+    fi
 }
 
 error()

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]