From 9cbd28d0cb5ed59fe34d8a8e1a03fd8debdefd4c Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 4 May 2025 10:28:00 +0300 Subject: DOS: hopefully fixed wildcard expansions in the drive root Apparently "." doesn't always have the S_ISDIR flag in SvarDOS (DR-DOS), so we simply exclude it. --- teco.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/teco.c b/teco.c index cc5215a..11c24ed 100644 --- a/teco.c +++ b/teco.c @@ -1519,7 +1519,8 @@ char *cp; return; }/* End IF */ #else - if (stat(path,&statbuf) < 0 || !S_ISDIR(statbuf.st_mode)) { + if (strcmp(path,".") != 0 && + (stat(path,&statbuf) < 0 || !S_ISDIR(statbuf.st_mode))) { return; } #endif -- cgit v1.2.3