summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-07-24 15:50:23 +0200
committerDarren Tucker <dtucker@zip.com.au>2006-07-24 15:50:23 +0200
commit28e9ad1bed41dd0a7ed9f8df64f97207e14c1072 (patch)
treeb304737c88e8ad6d68f6742969ceb0b1e695701b
parent - (dtucker) [cleanup.c] Since config.h defines _LARGE_FILES on AIX, including (diff)
downloadopenssh-28e9ad1bed41dd0a7ed9f8df64f97207e14c1072.tar.xz
openssh-28e9ad1bed41dd0a7ed9f8df64f97207e14c1072.zip
- (dtucker) [regress/forcecommand.sh] Portablize.
-rw-r--r--ChangeLog3
-rw-r--r--regress/forcecommand.sh8
2 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 8982fe417..77af8bef7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -137,6 +137,7 @@
forcecommand tests. Add cipher-speed.sh test (not linked in yet)
- (dtucker) [cleanup.c] Since config.h defines _LARGE_FILES on AIX, including
system headers before defines.h will cause conflicting definitions.
+ - (dtucker) [regress/forcecommand.sh] Portablize.
20060713
- (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h
@@ -5055,4 +5056,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
-$Id: ChangeLog,v 1.4437 2006/07/24 13:19:40 dtucker Exp $
+$Id: ChangeLog,v 1.4438 2006/07/24 13:50:23 dtucker Exp $
diff --git a/regress/forcecommand.sh b/regress/forcecommand.sh
index 796e7c2c0..99e51a60f 100644
--- a/regress/forcecommand.sh
+++ b/regress/forcecommand.sh
@@ -5,9 +5,9 @@ tid="forced command"
cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak
-echo -n 'command="true" ' >$OBJ/authorized_keys_$USER
+echon 'command="true" ' >$OBJ/authorized_keys_$USER
cat $OBJ/rsa.pub >> $OBJ/authorized_keys_$USER
-echo -n 'command="true" ' >>$OBJ/authorized_keys_$USER
+echon 'command="true" ' >>$OBJ/authorized_keys_$USER
cat $OBJ/rsa1.pub >> $OBJ/authorized_keys_$USER
for p in 1 2; do
@@ -16,9 +16,9 @@ for p in 1 2; do
fail "forced command in key proto $p"
done
-echo -n 'command="false" ' >$OBJ/authorized_keys_$USER
+echon 'command="false" ' >$OBJ/authorized_keys_$USER
cat $OBJ/rsa.pub >> $OBJ/authorized_keys_$USER
-echo -n 'command="false" ' >>$OBJ/authorized_keys_$USER
+echon 'command="false" ' >>$OBJ/authorized_keys_$USER
cat $OBJ/rsa1.pub >> $OBJ/authorized_keys_$USER
cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy