On Sat, 17 Apr 2010, drswinghead wrote:
> in http://www.libssh2.org//libssh2_sftp_symlink_ex.html, the manual says it
> retrun 0 on success, but i read source code, it readly retrun the link_len.
Yes! For all "normal" read cases it certainly seems to return link_len.
> when will it return 0 ? what's mean when return 0?
There's only one way for it to return 0. That happens if server responds
SSH_FXP_STATUS OK to the command, instead of a SSH_FXP_NAME and data. I guess
the _creation_ of a symlink then returns this if successful.
I'll update the man page!
-- / daniel.haxx.se _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2010-04-17