diff options
author | Darren Tucker <dtucker@dtucker.net> | 2018-03-25 09:40:46 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-03-25 09:40:46 +1100 |
commit | 393436024d2e4b4c7a01f9cfa5854e7437896d11 (patch) | |
tree | 56b9579828977033392ee6a8f241e91b4637157e | |
parent | b5974de1a1d419e316ffb6524b1b277dda2f3b49 (diff) | |
download | openssh-git-393436024d2e4b4c7a01f9cfa5854e7437896d11.tar.gz |
Replace /dev/stdin with "-".
For some reason sftp -b doesn't work with /dev/stdin on Cygwin, as noted
and suggested by vinschen at redhat.com.
-rw-r--r-- | regress/sftp-uri.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sftp-uri.sh b/regress/sftp-uri.sh index 4d19dd71..7be104df 100644 --- a/regress/sftp-uri.sh +++ b/regress/sftp-uri.sh @@ -34,7 +34,7 @@ cmp ${COPY} ${DIR}/copy || fail "corrupted copy" verbose "$tid: put to remote directory (trailing slash)" sftpclean -${SFTP} -q -S "$SSH" -F $OBJ/ssh_config -b /dev/stdin \ +${SFTP} -q -S "$SSH" -F $OBJ/ssh_config -b - \ "sftp://${USER}@somehost:${PORT}/${DIR}/" > /dev/null 2>&1 << EOF version put ${DATA} copy @@ -48,7 +48,7 @@ fi verbose "$tid: put to remote directory (no slash)" sftpclean -${SFTP} -q -S "$SSH" -F $OBJ/ssh_config -b /dev/stdin \ +${SFTP} -q -S "$SSH" -F $OBJ/ssh_config -b - \ "sftp://${USER}@somehost:${PORT}/${DIR}" > /dev/null 2>&1 << EOF version put ${DATA} copy |