]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Add missing '/.' test at keyringer_set_recipients
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 22 Dec 2013 15:22:00 +0000 (13:22 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 22 Dec 2013 15:22:00 +0000 (13:22 -0200)
lib/keyringer/functions

index 0e795eea4fcb15db1cb3b34527daf81eb8803ae4..de7516f1d08ffd0a7639306206bf736444342d5e 100755 (executable)
@@ -554,7 +554,7 @@ function keyringer_set_recipients {
     candidate_no_extension="`echo $1 | sed -e 's/.asc$//'`"
 
     # Find the first matching recipient
-    while [ ! -z "$candidate" ] && [ "$candidate" != "." ] && [ "$candidate" != "/" ]; do
+    while [ ! -z "$candidate" ] && [ "$candidate" != "." ] && [ "$candidate" != "/" ] && [ "$candidate" != "/." ]; do
       if [ -e "$RECIPIENTS/$candidate" ]; then
         RECIPIENTS_FILE="$RECIPIENTS/$candidate"
         RECIPIENTS_FILE_BASE="$RECIPIENTS_BASE/$candidate"