Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ci_prereq.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh

sudo apt update
sudo apt install -y \
devscripts \
equivs
Expand Down
6 changes: 5 additions & 1 deletion src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
*/

#include <dos.h>
#ifndef _A_DEVICE
#define _A_DEVICE 0x40u
#endif
#include <libc/dosio.h>
#include <io.h>
#include <libc/getdinfo.h>
Expand Down Expand Up @@ -2693,7 +2696,8 @@ static void perform_dir(const char *arg)
}
if (first)
{
if ((ffrc = findfirst_f(full_filespec, &ff, attrib, &ffhandle)) != 0)
if (((ffrc = findfirst_f(full_filespec, &ff, attrib, &ffhandle)) != 0) ||
ff.ff_attrib == _A_DEVICE )
{
puts("File not found"); // informational message -- not an error
return;
Expand Down