Subject: Re: libssh2_sftp_stat_ex returns zero filesize

Re: libssh2_sftp_stat_ex returns zero filesize

From: Peter Stuge <peter_at_stuge.se>
Date: Wed, 14 Dec 2011 05:31:44 +0100

Dan Hayes wrote:
> Below is the trace excerpt picking up where I successfully executed
> libssh2_sftp_open() command and then issued the stat command.
> You'll notice the file name is:
>
> /ADT00359/%25ADT00359%25ADT00359%25null%25DONE%25dmh_65l1h3006gntl7mu00027jpn
>
> The file name has embedded % which I have expanded to their
> hexadecimal representation (%25).

Why?

> <-------------BEGIN EXCERPT ---------------------->
> [libssh2] 1.948061 SFTP: Open command successful

Please do not ever send abbreivated logs. You have excluded parts
that are interesting and important for diagnosing the problem.

> The interesting lines of the program (basically example/sftp.c) which
> are generating this output are:

Again, this is not an example that anyone else can test. Please make
a minimal program which demonstrates the problem, and share it in
it's entirety, to allow others to reproduce.

But - perhaps this problem is because of the server side. You said
SFTP version 3, but it would also be interesting to know what the
server software is, and on which operating system it is running.

And please do explain why you introduced URI encoding in SSH.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-12-14