Yea, that looks like it'll work! I'll give it a try on Monday and let you know. 

Thanks,
Chris Gamio

On Dec 31, 2010, at 6:23 PM, Daniel Stenberg <[email protected]> wrote:

> On Wed, 29 Dec 2010, Daniel Stenberg wrote:
> 
>> I read up on the current code for 'pwd' (lib/ssh.c:1046 to 1056) and it 
>> quite clearly does not send the current path to the header callback. It is 
>> just sent to the debug output function, which allows you to trap it if you 
>> use CURLOPT_DEBUGFUNCTION but that really isn't what I thought or what I 
>> think is correct.
> 
> Hi again,
> 
> How about something similar to the attached patch? It should send a faked 
> header to the header callback in a style and syntax that mimics the FTP way. 
> I didn't actually try it myself yet...
> 
> -- 
> 
> / daniel.haxx.se
> <sftp-pwd.patch>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette:  http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to