summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2013-10-17 22:00:19 +0000
committerDamien Miller <djm@cvs.openbsd.org>2013-10-17 22:00:19 +0000
commit022785578252d0cf8b5a5a36ee320b4855175129 (patch)
treee49acc9f23178dff6af2c2a93a9d9a2347d90d22 /regress/usr.bin
parentaf98335b55ed1a87e3fe2498675904112e8f5538 (diff)
test fails when run as root - test executability instead of writability
in setstat test; reported by Tim Ruehsen
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/ssh/sftp-perm.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/regress/usr.bin/ssh/sftp-perm.sh b/regress/usr.bin/ssh/sftp-perm.sh
index 2db88273239..3448740bc14 100644
--- a/regress/usr.bin/ssh/sftp-perm.sh
+++ b/regress/usr.bin/ssh/sftp-perm.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: sftp-perm.sh,v 1.1 2013/10/09 23:44:14 djm Exp $
+# $OpenBSD: sftp-perm.sh,v 1.2 2013/10/17 22:00:18 djm Exp $
# Placed in the Public Domain.
tid="sftp permissions"
@@ -90,10 +90,10 @@ ro_test \
ro_test \
"setstat" \
- "chmod 0600 $COPY" \
+ "chmod 0700 $COPY" \
"touch $COPY; chmod 0400 $COPY" \
- "test -w $COPY" \
- "test ! -w $COPY"
+ "test -x $COPY" \
+ "test ! -x $COPY"
ro_test \
"rm" \
@@ -191,10 +191,10 @@ perm_test \
perm_test \
"setstat" \
"realpath,stat,lstat" \
- "chmod 0600 $COPY" \
+ "chmod 0700 $COPY" \
"touch $COPY; chmod 0400 $COPY" \
- "test -w $COPY" \
- "test ! -w $COPY"
+ "test -x $COPY" \
+ "test ! -x $COPY"
perm_test \
"remove" \