-
Notifications
You must be signed in to change notification settings - Fork 163
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
DOS stat() pathname separator inconsistency #1345
Comments
What DOS version you are using? |
This happens in:
MS-DOS and FreeDOS have different issue1345.zip is a floppy disk image containing the |
Thanks for your bug report. |
There is issue with trailing slash. |
It looks like it is correct behaviour, because appropriate DOS function to access directory fails due to trailing slash. Anyway there was small mistake which caused strange behaviour for forward/backward slash on the end . |
The DOS runtime recognizes both kinds of slashes as pathname separators, but handles them differently.
Consider this test program:
Compile it with:
Observed
stat()
behavior:stat()
behaves like posix.errno=1
(ENOENT: No such file or directory).X:\
is recognized as a corner case.)stat()
parameter is a file, then both slashes are folded similarly.Expected
stat()
behavior:The text was updated successfully, but these errors were encountered: