diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-12-14 15:39:20 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-12-14 15:39:20 +1100 |
commit | 3154358d66c99636021e7f1b9555064d9cc38e00 (patch) | |
tree | c993c3d52d733e53f22d2f5a379fbbf110429a31 /regress | |
parent | 62a31c9fd06506ab976a4dc2050882f29ab24693 (diff) |
- dtucker@cvs.openbsd.org 2005/12/30 04:36:39
[regress/scp-ssh-wrapper.sh]
Fix assumption about how many args scp will pass; ok djm@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/scp-ssh-wrapper.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/regress/scp-ssh-wrapper.sh b/regress/scp-ssh-wrapper.sh index 8e4314773..594337d11 100644 --- a/regress/scp-ssh-wrapper.sh +++ b/regress/scp-ssh-wrapper.sh | |||
@@ -16,8 +16,11 @@ printname () { | |||
16 | done | 16 | done |
17 | } | 17 | } |
18 | 18 | ||
19 | # discard first 5 args | 19 | # Discard all but last argument. We use arg later. |
20 | shift; shift; shift; shift; shift | 20 | while test "$1" != ""; do |
21 | arg="$1" | ||
22 | shift | ||
23 | done | ||
21 | 24 | ||
22 | BAD="../../../../../../../../../../../../../${DIR}/dotpathdir" | 25 | BAD="../../../../../../../../../../../../../${DIR}/dotpathdir" |
23 | 26 | ||
@@ -49,6 +52,6 @@ badserver_4) | |||
49 | echo "X" | 52 | echo "X" |
50 | ;; | 53 | ;; |
51 | *) | 54 | *) |
52 | exec $1 | 55 | exec $arg |
53 | ;; | 56 | ;; |
54 | esac | 57 | esac |