Hi! I was tying out the put command with version 6.7_p1 of OpenSSH. If I use recursive copying, sftp expects the last directory in the <source> exists in the destination (on the server), otherwise ?Couldn't canonicalize: No such file or directory?. I would've taken this to be the expected behavior, but get command does not have this problem. It makes the destination directory in the client like with cp. So kindly take a look at this.
On Mon, Feb 02, 2015 at 20:28:00 +0530, dE wrote:> Hi! > > I was tying out the put command with version 6.7_p1 of OpenSSH. > > If I use recursive copying, sftp expects the last directory in the > <source> exists in the destination (on the server), otherwise ?Couldn't > canonicalize: No such file or directory?. > > I would've taken this to be the expected behavior, but get command does > not have this problem. It makes the destination directory in the client > like with cp. > > So kindly take a look at this. > > > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org > https://lists.mindrot.org/mailman/listinfo/openssh-unix-devThis has already been noted as a bug[1][2], but hasn't been addresed yet. I filed the original bug, but had other priorites, and then forgot about the issue. I'll take another look at this when I get some time. [1] https://bugzilla.mindrot.org/show_bug.cgi?id=2150 [2] https://bugzilla.mindrot.org/show_bug.cgi?id=2230 -- Iain Morgan
On 02/03/15 02:43, Iain Morgan wrote:> On Mon, Feb 02, 2015 at 20:28:00 +0530, dE wrote: >> Hi! >> >> I was tying out the put command with version 6.7_p1 of OpenSSH. >> >> If I use recursive copying, sftp expects the last directory in the >> <source> exists in the destination (on the server), otherwise ?Couldn't >> canonicalize: No such file or directory?. >> >> I would've taken this to be the expected behavior, but get command does >> not have this problem. It makes the destination directory in the client >> like with cp. >> >> So kindly take a look at this. >> >> >> _______________________________________________ >> openssh-unix-dev mailing list >> openssh-unix-dev at mindrot.org >> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev > This has already been noted as a bug[1][2], but hasn't been addresed > yet. I filed the original bug, but had other priorites, and then forgot > about the issue. I'll take another look at this when I get some time. > > [1] https://bugzilla.mindrot.org/show_bug.cgi?id=2150 > [2] https://bugzilla.mindrot.org/show_bug.cgi?id=2230 >Thanks.
Apparently Analagous Threads
- [Bug 2230] New: Undocumented sftp put -r quirk: Couldn't canonicalize: No such file or directory
- [Bug 2150] New: Recursive upload expects target directory to already exist
- Undocumented sftp put -r quirk: Couldn't canonicalize: No such file or directory
- [BUG?] sftp is echoing back prompt and commands in batch mode
- [BUG?] sftp is echoing back prompt and commands in batch mode