[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Fopen("NUL:", 0) returns -33 (ENOENT)



On 29/01/15 18:52, Thorsten Otto wrote:
> Hi,
>
> There is a bug in filesys.c, which has only some generic code to translate device file names like NUL:, AUX: etc. to mint device filenames. It works by changing the actual looked up name to u:\dev\xxx, where 'xxx' is replace by the first 3 characters of the original filename. This works for CON:, AUX: and PRN:, but not for NUL: (where the actual filename is u:\dev\null) and MID: (u:\dev\midi), causing Fopen() to fail with error -ENOENT. I attached a patch to fix this.
>

Thanks again Thorsten.

Committed.

Alan.