Skip to content

Zero-byte virtual files in /proc are not fetched. #2

@ewheelerinc

Description

@ewheelerinc

Hello,

If you try to access a file in /proc in the remote filesystem then no content is returned (eg, cat /mnt/ftp/proc/stat). I'm pretty sure this is because the file size is reported as zero, so curl doesn't return any data:

curlftpfs user:pass@192.168.100.1:/ /mnt/ftp
cat /mnt/ftp/proc/stat
<empty response>

However, if I use ncftp then I can cat the file just fine:

ncftp -u user -p pass 192.168.100.1
Logging in...                                                                                                       
ncftp / > cat /proc/stat
cpu  304187 0 321924 1697440 6 79 1240 0 0 0
...

I tried -o custom_list=LIST instead of the default LIST -a hoping it would fetch until EOF without knowing the file length, but to no avail.

Do you know how this can be made to work?

Thanks for your help!

-Eric

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions