]> andersk Git - openssh.git/blobdiff - regress/scp-ssh-wrapper.sh
- djm@cvs.openbsd.org 2008/06/30 08:07:34
[openssh.git] / regress / scp-ssh-wrapper.sh
index 8e4314773119f8973565a3223e9cf27d123fc4c3..d1005a995a176696915f4ee0a61b7d6860ebfa32 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-#       $OpenBSD: scp-ssh-wrapper.sh,v 1.1 2004/06/13 13:51:02 dtucker Exp $
+#       $OpenBSD: scp-ssh-wrapper.sh,v 1.2 2005/12/14 04:36:39 dtucker Exp $
 #       Placed in the Public Domain.
 
 printname () {
@@ -16,8 +16,11 @@ printname () {
        done
 }
 
-# discard first 5 args
-shift; shift; shift; shift; shift
+# Discard all but last argument.  We use arg later.
+while test "$1" != ""; do
+       arg="$1"
+       shift
+done
 
 BAD="../../../../../../../../../../../../../${DIR}/dotpathdir"
 
@@ -49,6 +52,6 @@ badserver_4)
        echo "X"
        ;;
 *)
-       exec $1
+       exec $arg
        ;;
 esac
This page took 0.184657 seconds and 4 git commands to generate.