bugzilla-daemon at bugzilla.mindrot.org
2016-Jan-19 18:25 UTC
[Bug 2528] New: sftp "put -r ." broken starting with 6.8
https://bugzilla.mindrot.org/show_bug.cgi?id=2528
Bug ID: 2528
Summary: sftp "put -r ." broken starting with 6.8
Product: Portable OpenSSH
Version: 6.8p1
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: sftp
Assignee: unassigned-bugs at mindrot.org
Reporter: vapier at gentoo.org
here's the testcase:
cd ~/
rm -rf test x
mkdir -p x/test
touch x/test/{1,2,3}
cd x
sftp localhost <<<'put -r .'
with openssh-6.7 and older, you'd get:
Connected to localhost.
sftp> put -r .
Uploading ./ to /home/vapier/.
Entering ./
Entering ./test
./test/3 100% 0 0.0KB/s 00:00
./test/2 100% 0 0.0KB/s 00:00
./test/1 100% 0 0.0KB/s 00:00
starting with openssh-6.8, you get:
Connected to localhost.
sftp> put -r .
Uploading ./ to /home/vapier/.
Entering ./
and nothing is actually uploaded. the failure is due to the remote
doing mkdir(/home/vapier/.), getting EEXIST, and then returning an
error to the client which makes it stop.
bisecting the public github repo shows the first bad commit is this
one:
https://github.com/openssh/openssh-portable/commit/7d845f4a0b7ec97887be204c3760e44de8bf1f32
(i had to cherry pick 0cdc5a3eb6fb383569a4da2a30705d9b90428d6b and
83b9678a62cbdc74eb2031cf1e1e4ffd58e233ae to get it to build)
its parent obviously works fine too:
https://github.com/openssh/openssh-portable/commit/139ca81866ec1b219c717d17061e5e7ad1059e2a
it might be that the new one is doing more error checking, but it seems
like the server or client should handle EEXIST correctly.
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2016-Feb-11 02:23 UTC
[Bug 2528] sftp "put -r ." broken starting with 6.8
https://bugzilla.mindrot.org/show_bug.cgi?id=2528
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |djm at mindrot.org
Resolution|--- |FIXED
Blocks| |2451
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
Thanks, fixed in
https://github.com/openssh/openssh-portable/commit/e30cabfa4ab456a30b3224f7f545f1bdfc4a2517
Referenced Bugs:
https://bugzilla.mindrot.org/show_bug.cgi?id=2451
[Bug 2451] Bugs intended to be fixed in 7.2
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2018-Apr-06 02:26 UTC
[Bug 2528] sftp "put -r ." broken starting with 6.8
https://bugzilla.mindrot.org/show_bug.cgi?id=2528
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #2 from Damien Miller <djm at mindrot.org> ---
Close all resolved bugs after release of OpenSSH 7.7.
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
Apparently Analagous Threads
- [Bug 1604] SCTP support for openssh
- [Bug 2949] New: "limits@openssh.com" extension to SFTP to query various transfer limits
- [Bug 2509] New: Unexpected change in tcpip-forward reply message in OpenSSH 6.8
- [Bug 2369] New: `ssh-keygen -A` errors on RSA1 when building with SSH1 disabled
- [Bug 928] Kerberos/GSSAPI authentication does not work with multihomed hosts