On Tue, Jun 14, 2011 at 22:34:46 -0500, Corey wrote:
> On 06/14/2011 04:52 AM, LEVAI Daniel wrote:
> >Hi!
> >
> >
> >Uploading a directory recursively fails if it doesn't exist on the
> >remote site:
> >
> >sftp>  put -r nonexistent\ directory/
> >Uploading nonexistent directory/ to /tmp/nonexistent directory
> >Couldn't canonicalise: No such file or directory
> >sftp>  mkdir nonexistent\ directory/
> >sftp>  put -r nonexistent\ directory/
> >       ^^^ success
> >
> >It should create the directory first, and then copy the content, no?
> >This is on -current:
> >$ ssh -V
> >OpenSSH_5.8, OpenSSL 1.0.0a 1 Jun 2010
> >
> >
> >Daniel
> >
> Did you try doing it with a directory without a space in it?  Not
> that the space shouldn't work, but it might narrow down the problem
> (as might grepping the source for that error message).

Yep, it breaks when using a name without space, but it seems that this
is only reproducible with an ssh server running on Linux:
$ ssh -V
OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011

So the client is on OpenBSD (also 5.8), and the server is the Linux
version. This is the environment where the bug happens.


Daniel

-- 
LIVAI Daniel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F

Reply via email to