summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2016-02-24 09:18:25 -0500
committerRob Crittenden <rcritten@redhat.com>2016-02-29 16:09:17 -0500
commit31a5ff02f6ff251629d597d43ee88fadb135ff8b (patch)
tree26670cec74db4ea29778d1b4ba424ecbd5ce8115
parentae8c616ade2199ca26bd39374707d44a04be7db3 (diff)
downloadmod_nss-31a5ff02f6ff251629d597d43ee88fadb135ff8b.tar.gz
mod_nss-31a5ff02f6ff251629d597d43ee88fadb135ff8b.tar.xz
mod_nss-31a5ff02f6ff251629d597d43ee88fadb135ff8b.zip
Use proper shell syntax to avoid creating /0
I used if [ $x > 0 ]; ... which is obviously wrong :-( https://bugzilla.redhat.com/show_bug.cgi?id=1311392
-rwxr-xr-xgencert.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/gencert.in b/gencert.in
index 3ecff5b..e437a60 100755
--- a/gencert.in
+++ b/gencert.in
@@ -303,7 +303,7 @@ $CERTUTIL -A -d $DBDIR -n Server-Cert \
rm $DEST/tmpcert.der
-if [ $SNI > 0 ]; then
+if [ $SNI -gt 0 ]; then
SNI=`expr $SNI + 1`
count=1
while test $count -lt $SNI ; do