]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Do not trigger a false positive when subkeys has no expiry date
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Feb 2014 18:55:52 +0000 (15:55 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Feb 2014 18:55:52 +0000 (15:55 -0300)
lib/keyringer/functions

index ec3eb0c715146cce77d14abb8e6a52ddbc0d18f5..e60657a8f86c1397bf24f3b5fffcbc06a9b257ec 100755 (executable)
@@ -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