aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-02-27 15:55:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-02-27 15:55:52 -0300
commit34ef511e0404012dff2b44fa3f8453c926aa5456 (patch)
tree00913b0dfd58a86b51d358d54c9cc14ede96ea5a /lib
parentd2b6a5193d7dbb28351ec2108ac119a42c7365e3 (diff)
downloadkeyringer-34ef511e0404012dff2b44fa3f8453c926aa5456.tar.gz
keyringer-34ef511e0404012dff2b44fa3f8453c926aa5456.tar.bz2
Do not trigger a false positive when subkeys has no expiry date
Diffstat (limited to 'lib')
-rwxr-xr-xlib/keyringer/functions2
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