Skip to content

Commit 637e4df

Browse files
committed
upstream: use "lcd" to change directory before "lls" rather then "cd",
since the directory we're trying to list is local. Spotted by Corinna Vinschen OpenBSD-Regress-ID: 821feca4a4bebe491944e624c8f7f2990b891415
1 parent c8cfe25 commit 637e4df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regress/sftp-cmds.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $OpenBSD: sftp-cmds.sh,v 1.19 2024/03/29 10:40:07 dtucker Exp $
1+
# $OpenBSD: sftp-cmds.sh,v 1.20 2024/07/01 03:10:19 djm Exp $
22
# Placed in the Public Domain.
33

44
# XXX - TODO:
@@ -28,7 +28,7 @@ rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2
2828
mkdir ${COPY}.dd
2929

3030
verbose "$tid: lls"
31-
printf "cd ${OBJ}\nlls\n" | ${SFTP} -D ${SFTPSERVER} 2>&1 | \
31+
printf "lcd ${OBJ}\nlls\n" | ${SFTP} -D ${SFTPSERVER} 2>&1 | \
3232
grep copy.dd >/dev/null || fail "lls failed"
3333

3434
verbose "$tid: lls w/path"

0 commit comments

Comments
 (0)