Fix for "local" socket host name
if -h local is set, be sure to never set -h flag so we use the socket and not host connection. Needed for trust with socket flow (sudo -u)
This commit is contained in:
@@ -110,7 +110,7 @@ while getopts ":o:d:h:f:p:e:i:j:raqnms" opt; do
|
||||
fi;
|
||||
;;
|
||||
h|hostname)
|
||||
if [ -z "$host" ]; then
|
||||
if [ -z "$_host" ]; then
|
||||
# if local it is socket
|
||||
if [ "$OPTARG" != "local" ]; then
|
||||
host='-h '$OPTARG;
|
||||
|
||||
Reference in New Issue
Block a user