Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
File protocol does not work for files on procfs or debugfs #681
Reading files from the local file system using the
However if the file is located on a procfs or debugfs, no result is returned:
curl probably does a check for size, since fstat shows size 0. See strace excerpt:
Compare that to
Is there a way to read these files using curl, perhaps with a special command line option to ignore size? Is this considered a bug or intended behavior?
Yes, if the file size stats to zero then the function does not attempt to read.
We could piggyback on