allow symlinks for the binary and resolve them

fix/83-SIG_SUBPACKET
Thomas Tanner 2013-11-12 08:23:05 +01:00
parent 287f188340
commit 580a5429f9
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ def _find_binary(binary=None):
try:
assert os.path.isabs(found), "Path to gpg binary not absolute"
assert not os.path.islink(found), "Path to gpg binary is symlink"
found = os.path.realpath(found)
assert os.access(found, os.X_OK), "Lacking +x perms for gpg binary"
except (AssertionError, AttributeError) as ae:
log.error(ae.message)