From: Silvio Rhatto Date: Thu, 27 Feb 2014 18:55:52 +0000 (-0300) Subject: Do not trigger a false positive when subkeys has no expiry date X-Git-Tag: 0.3.1~10 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=34ef511e0404012dff2b44fa3f8453c926aa5456;p=keyringer.git Do not trigger a false positive when subkeys has no expiry date --- diff --git a/lib/keyringer/functions b/lib/keyringer/functions index ec3eb0c..e60657a 100755 --- a/lib/keyringer/functions +++ b/lib/keyringer/functions @@ -715,7 +715,7 @@ function keyringer_check_expiration { done # All subkeys are expired - if [ "$not_expired" != "1" ]; then + if [ ! -z "$expiry" ] && [ "$not_expired" != "1" ]; then echo "Fatal: key $recipient has no keys suitable for encryption: all subkeys expired." exit 1 fi