Skip to content

Commit 10124ee

Browse files
committed
upstream: Some dd's don't understand "1m", so handle seperately.
OpenBSD-Regress-ID: 1d983b27c96f28f69d3a288c19e8d8c58e1b2ee3
1 parent c21c8fc commit 10124ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

regress/sftp-resume.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $OpenBSD: sftp-resume.sh,v 1.1 2025/03/11 07:50:20 dtucker Exp $
1+
# $OpenBSD: sftp-resume.sh,v 1.2 2025/03/11 09:06:50 dtucker Exp $
22
# Placed in the Public Domain.
33

44
tid="sftp resume"
@@ -24,6 +24,8 @@ for cmd in put get; do
2424
;;
2525
same) cp ${DATA} ${COPY}.2
2626
;;
27+
1m) dd if=${COPY}.1 of=${COPY}.2 bs=1k count=1k >/dev/null 2<&1
28+
;;
2729
*) dd if=${COPY}.1 of=${COPY}.2 bs=${size} count=1 >/dev/null 2>&1
2830
;;
2931
esac

0 commit comments

Comments
 (0)