diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-02-27 15:55:52 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-02-27 15:55:52 -0300 |
commit | 34ef511e0404012dff2b44fa3f8453c926aa5456 (patch) | |
tree | 00913b0dfd58a86b51d358d54c9cc14ede96ea5a | |
parent | d2b6a5193d7dbb28351ec2108ac119a42c7365e3 (diff) | |
download | keyringer-34ef511e0404012dff2b44fa3f8453c926aa5456.tar.gz keyringer-34ef511e0404012dff2b44fa3f8453c926aa5456.tar.bz2 |
Do not trigger a false positive when subkeys has no expiry date
-rwxr-xr-x | lib/keyringer/functions | 2 |
1 files changed, 1 insertions, 1 deletions
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 |