From: Silvio Rhatto Date: Sun, 22 Dec 2013 15:22:00 +0000 (-0200) Subject: Add missing '/.' test at keyringer_set_recipients X-Git-Tag: 0.3~15 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4a19a5a2db0e49846249bf4b7ce02a2c6e143626;p=keyringer.git Add missing '/.' test at keyringer_set_recipients --- diff --git a/lib/keyringer/functions b/lib/keyringer/functions index 0e795ee..de7516f 100755 --- a/lib/keyringer/functions +++ b/lib/keyringer/functions @@ -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"