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 upGitHub 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.
sanitize_open problems #15020
sanitize_open problems #15020
Comments
|
Incorrect. |
|
I confirm that 99081da fixes the problem. |
sanitize_open is supposed to return a file object and a sanitized path name, but it currently returns the given filename always. Also, there is one call to sanitize_open that erroneously saves the sanitized name, and one call that discards the name instead of saving it. On FreeBSD, which uses US-ASCII file names, here is a URL that goes wrong: https://www.youtube.com/watch?v=DxEPR1BJEh8
It ends up with:
Here is the patch: