From: Todd C. Miller Date: Sun, 23 Mar 2008 14:12:19 +0000 (+0000) Subject: If the file given to install is a path, only use the basename of the X-Git-Tag: SUDO_1_7_0~141 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1efe9a900f31faf4a462899891544821e5aa2b03;p=sudo If the file given to install is a path, only use the basename of the file when building the destination path. --- diff --git a/install-sh b/install-sh index 686626bf1..cf3081f06 100755 --- a/install-sh +++ b/install-sh @@ -182,7 +182,7 @@ fi ## Get the destination and a temp file in the destination diretory. if [ -d "$2" ] ; then - DEST="$2/$1" + DEST="$2/`basename $1`" TEMP="$2/$$.tmp" else DEST="$2"