Skip to content

Truename returns incorrect results with device nul #282

@andrewbird

Description

@andrewbird

Whilst debugging an issue with FreeDOS, I found it necessary to write a test to examine Truename. Strangely things were fine with the FreeDOS kernel in git (though 1.2,1.3 were broken), however I did encounter a case were FDPP was also incorrect. I've attached a test binary that I ran on qemu under MS-DOS 6.22 (7.0, 7.1 were identical) to establish the correct responses. Anyway it seems that in the following cases FDPP gets it wrong.

FAIL: (sent '\dev\nul', expected '[A-Z]:/NUL', got 'C:\DEV\NUL')
FAIL: (sent '\dev\nul.ext', expected '[A-Z]:/NUL.EXT', got 'C:\DEV\NUL.EXT')
FAIL: (sent '\nul', expected '[A-Z]:\NUL', got 'C:/NUL')
FAIL: (sent '\nul.ext', expected '[A-Z]:\NUL.EXT', got 'C:/NUL.EXT')

The results are identical if the test is run on an MFS or FAT16 drive.

Note: to be sure that the redirector played no part in FDPP's results, I '#ifdefed' QualifyFilename out.

t1.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions