Skip to content

Conversation

@andrewbird
Copy link
Member

When doing DIR NUL findfirst will actually return success with an attribute indicating a device exists with that name. MS-DOS shows 'File not found' in this case, but Comcom (and also FreeCOM) can display invalid data, so let's correct that. Since the required constant _A_DEVICE isn't always present in dos.h, let's define it when necessary.

Before:

C:\>dir nul
 Volume in drive c is IR DXXXXS C
 Directory of c:\

2025-10-30 16:41             0 NUL
         1 file(s)              0 bytes
         0 dir(s)            48.7 GB free

With patch:

C:\>dir nul
 Volume in drive c is IR DXXXXS C
 Directory of c:\

File not found

When doing `DIR NUL` findfirst will actually return success
with an attribute indicating a device exists with that name.
MS-DOS shows 'File not found' in this case, but Comcom
(and also FreeCOM) can display invalid data, so let's
correct that. Since the required constant _A_DEVICE isn't
always present in `dos.h`, let's define it when necessary.

Before:
~~~
C:\>dir nul
 Volume in drive c is IR DXXXXS C
 Directory of c:\

2025-10-30 16:41             0 NUL
         1 file(s)              0 bytes
         0 dir(s)            48.7 GB free
~~~

With patch:
~~~
C:\>dir nul
 Volume in drive c is IR DXXXXS C
 Directory of c:\

File not found
~~~
It seems the runner image has a strange package state, so we need
to `apt update` before trying to install any packages.
@stsp
Copy link
Member

stsp commented Oct 30, 2025

Oh, that's really is not a bug. :)
But since you already supplied
a patch... likely there is no reason
to not apply it either.

@stsp stsp merged commit 2beea75 into dosemu2:master Oct 30, 2025
1 check passed
@stsp
Copy link
Member

stsp commented Oct 30, 2025

Thanks.

@andrewbird andrewbird deleted the dir-01 branch October 30, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants