diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-05-04 10:28:00 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-05-04 10:28:00 +0300 |
commit | 9cbd28d0cb5ed59fe34d8a8e1a03fd8debdefd4c (patch) | |
tree | eabcdbc16fdfbce93a6302bab0e7366fa1400b5c | |
parent | b0ef971780b3efb41f9bf6ce6c35dbf7526ebc89 (diff) | |
download | videoteco-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |