aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-04 10:28:00 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-04 10:28:00 +0300
commit9cbd28d0cb5ed59fe34d8a8e1a03fd8debdefd4c (patch)
treeeabcdbc16fdfbce93a6302bab0e7366fa1400b5c
parentb0ef971780b3efb41f9bf6ce6c35dbf7526ebc89 (diff)
downloadvideoteco-fork-9cbd28d0cb5ed59fe34d8a8e1a03fd8debdefd4c.tar.gz
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.
-rw-r--r--teco.c3
1 files changed, 2 insertions, 1 deletions
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