]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: use "lcd" to change directory before "lls" rather then "cd",
authordjm@openbsd.org <djm@openbsd.org>
Mon, 1 Jul 2024 03:10:19 +0000 (03:10 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 1 Jul 2024 04:32:39 +0000 (14:32 +1000)
since the directory we're trying to list is local. Spotted by Corinna
Vinschen

OpenBSD-Regress-ID: 821feca4a4bebe491944e624c8f7f2990b891415

regress/sftp-cmds.sh

index 9b08bde58a7cb00763bd2d251fcea12e00b68094..56404713a9fd7f93e1bb72822d6507142f81f0ca 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: sftp-cmds.sh,v 1.19 2024/03/29 10:40:07 dtucker Exp $
+#      $OpenBSD: sftp-cmds.sh,v 1.20 2024/07/01 03:10:19 djm Exp $
 #      Placed in the Public Domain.
 
 # XXX - TODO: 
@@ -28,7 +28,7 @@ rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2
 mkdir ${COPY}.dd
 
 verbose "$tid: lls"
-printf "cd ${OBJ}\nlls\n" | ${SFTP} -D ${SFTPSERVER} 2>&1 | \
+printf "lcd ${OBJ}\nlls\n" | ${SFTP} -D ${SFTPSERVER} 2>&1 | \
        grep copy.dd >/dev/null || fail "lls failed"
 
 verbose "$tid: lls w/path"