From 77347a11d96c82b0f24c3839e96402a78b51d7a3 Mon Sep 17 00:00:00 2001 From: dtucker Date: Tue, 26 Mar 2024 08:09:16 +0000 Subject: [PATCH] test -h is the POSIXly way of testing for a symlink. Reduces diff vs Portable. --- regress/usr.bin/ssh/sftp-cmds.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/usr.bin/ssh/sftp-cmds.sh b/regress/usr.bin/ssh/sftp-cmds.sh index a7594bfc098..78b3c3ca574 100644 --- a/regress/usr.bin/ssh/sftp-cmds.sh +++ b/regress/usr.bin/ssh/sftp-cmds.sh @@ -1,4 +1,4 @@ -# $OpenBSD: sftp-cmds.sh,v 1.17 2024/03/25 06:05:42 dtucker Exp $ +# $OpenBSD: sftp-cmds.sh,v 1.18 2024/03/26 08:09:16 dtucker Exp $ # Placed in the Public Domain. # XXX - TODO: @@ -188,7 +188,7 @@ cmp ${COPY}.1 ${COPY}.2 || fail "created file is not equal after ln" verbose "$tid: ln -s" rm -f ${COPY}.2 echo "ln -s ${COPY}.1 ${COPY}.2" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "ln -s failed" -test -L ${COPY}.2 || fail "missing file after ln -s" +test -h ${COPY}.2 || fail "missing file after ln -s" verbose "$tid: cp" rm -f ${COPY}.2 -- 2.20.1