mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-15 05:43:19 -08:00
DIRECTORY used stat() also on files that did not match the directory masks.
This commit is contained in:
parent
d72d2685bd
commit
858cf166a9
2 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,10 @@
|
|||
ECL 9.12.4:
|
||||
===========
|
||||
|
||||
* Bugs fixed:
|
||||
|
||||
- DIRECTORY used stat() also on files that did not match the directory masks.
|
||||
|
||||
ECL 9.12.3:
|
||||
===========
|
||||
|
||||
|
|
|
|||
|
|
@ -746,10 +746,10 @@ list_current_directory(const char *mask, bool only_dir, cl_object prefix)
|
|||
(text[1] == '\0' ||
|
||||
(text[1] == '.' && text[2] == '\0')))
|
||||
continue;
|
||||
if (only_dir && file_kind(text, TRUE) != @':directory')
|
||||
continue;
|
||||
if (mask && !string_match(text, mask))
|
||||
continue;
|
||||
if (only_dir && file_kind(text, TRUE) != @':directory')
|
||||
continue;
|
||||
out = ecl_cons(make_base_string_copy(text), out);
|
||||
}
|
||||
#ifdef HAVE_DIRENT_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue