From 34ef511e0404012dff2b44fa3f8453c926aa5456 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 27 Feb 2014 15:55:52 -0300 Subject: Do not trigger a false positive when subkeys has no expiry date --- lib/keyringer/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/keyringer/functions') 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 -- cgit v1.2.3