diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-03-07 18:25:53 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-03-07 18:25:53 +1100 |
commit | 68f7213a2cb1fa846d8eab215f1cde35e2abc20b (patch) | |
tree | 8a5b81c209a787b9eca6650b2f73c9df829e4001 | |
parent | 1c56ef6ac3c7818e5c71dd1f62a9473f340be9f2 (diff) |
- fgsch@cvs.openbsd.org 2004/12/10 01:31:30
[Makefile sftp-glob.sh]
some globbing regress; prompted and ok djm@
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | regress/sftp-glob.sh | 28 |
2 files changed, 30 insertions, 2 deletions
@@ -3,7 +3,7 @@ | |||
3 | BSM audit support for the time being. ok djm@ | 3 | BSM audit support for the time being. ok djm@ |
4 | - (dtucker) OpenBSD CVS Sync (regress/) | 4 | - (dtucker) OpenBSD CVS Sync (regress/) |
5 | - fgsch@cvs.openbsd.org 2004/12/10 01:31:30 | 5 | - fgsch@cvs.openbsd.org 2004/12/10 01:31:30 |
6 | [Makefile] | 6 | [Makefile sftp-glob.sh] |
7 | some globbing regress; prompted and ok djm@ | 7 | some globbing regress; prompted and ok djm@ |
8 | 8 | ||
9 | 20050306 | 9 | 20050306 |
@@ -2291,4 +2291,4 @@ | |||
2291 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 2291 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
2292 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 2292 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
2293 | 2293 | ||
2294 | $Id: ChangeLog,v 1.3695 2005/03/07 06:36:18 dtucker Exp $ | 2294 | $Id: ChangeLog,v 1.3696 2005/03/07 07:25:53 dtucker Exp $ |
diff --git a/regress/sftp-glob.sh b/regress/sftp-glob.sh new file mode 100644 index 000000000..e238356a2 --- /dev/null +++ b/regress/sftp-glob.sh | |||
@@ -0,0 +1,28 @@ | |||
1 | # $OpenBSD: sftp-glob.sh,v 1.1 2004/12/10 01:31:30 fgsch Exp $ | ||
2 | # Placed in the Public Domain. | ||
3 | |||
4 | tid="sftp glob" | ||
5 | |||
6 | BASE=${OBJ}/glob | ||
7 | DIR=${BASE}/dir | ||
8 | DATA=${DIR}/file | ||
9 | |||
10 | rm -rf ${BASE} | ||
11 | mkdir -p ${DIR} | ||
12 | touch ${DATA} | ||
13 | |||
14 | verbose "$tid: ls file" | ||
15 | echo "ls -l ${DIR}/fil*" | ${SFTP} -P ${SFTPSERVER} 2>/dev/null | \ | ||
16 | grep ${DATA} >/dev/null 2>&1 | ||
17 | if [ $? -ne 0 ]; then | ||
18 | fail "globbed ls file failed" | ||
19 | fi | ||
20 | |||
21 | verbose "$tid: ls dir" | ||
22 | echo "ls -l ${BASE}/d*" | ${SFTP} -P ${SFTPSERVER} 2>/dev/null | \ | ||
23 | grep file >/dev/null 2>&1 | ||
24 | if [ $? -ne 0 ]; then | ||
25 | fail "globbed ls dir failed" | ||
26 | fi | ||
27 | |||
28 | rm -rf ${BASE} | ||