From 8161436bc7f25332791a61383e3b7ffdc0856a38 Mon Sep 17 00:00:00 2001 From: Ryan Moore <007@users.noreply.github.com> Date: Wed, 15 May 2019 18:02:08 -0700 Subject: [PATCH] Remove requirement that "gpg" is not a symlink --- pretty_bad_protocol/_util.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pretty_bad_protocol/_util.py b/pretty_bad_protocol/_util.py index 1f4e4a5..6bcbe4c 100644 --- a/pretty_bad_protocol/_util.py +++ b/pretty_bad_protocol/_util.py @@ -395,8 +395,7 @@ def _deprefix(line, prefix, callback=None): def _find_binary(binary=None): """Find the absolute path to the GnuPG binary. - Also run checks that the binary is not a symlink, and check that - our process real uid has exec permissions. + Also check that our process real uid has exec permissions. :param str binary: The path to the GnuPG binary. :raises: :exc:`~exceptions.RuntimeError` if it appears that GnuPG is not @@ -421,7 +420,7 @@ def _find_binary(binary=None): elif os.access(binary, os.X_OK): found = binary if found is None: - try: found = _which('gpg', abspath_only=True, disallow_symlinks=True)[0] + try: found = _which('gpg', abspath_only=True)[0] except IndexError as ie: log.error("Could not find binary for 'gpg'.") try: found = _which('gpg2')[0]