From: David Kalnischkies Date: Tue, 14 Jun 2016 11:55:33 +0000 (+0200) Subject: apt-key: don't search PATH if command is a path already X-Git-Tag: 1.3_exp3~18 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/ee385a36fe753272cadac0afd7f19b123a0c3d54 apt-key: don't search PATH if command is a path already --- diff --git a/cmdline/apt-key.in b/cmdline/apt-key.in index ede6be4c3..7c12c72a3 100644 --- a/cmdline/apt-key.in +++ b/cmdline/apt-key.in @@ -23,6 +23,7 @@ requires_root() { } command_available() { + if [ -x "$1" ]; then return 0; fi # command -v "$1" >/dev/null 2>&1 # not required by policy, see #747320 # which "$1" >/dev/null 2>&1 # is in debianutils (essential) but not on non-debian systems local OLDIFS="$IFS"