Imported Upstream version 1.6.9p16
[debian/sudo] / install-sh
index 5a6d3999ad185625a785c558e3264b4d23ce72d1..da077192aa5b48d4cb1efd8119af075eafeb3cc2 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 ## (From INN-1.4, written by Rich Salz)
-##  $Revision: 1.9 $
+##  $Revision: 1.9.4.1 $
 ##  A script to install files and directories.
 
 PROGNAME=`basename $0`
@@ -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"