Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ewheelerinc opened this issue Jun 9, 2022 · 0 comments
Open

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

ewheelerinc opened this issue Jun 9, 2022 · 0 comments

Comments

@ewheelerinc
Copy link

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:[email protected]:/ /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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant