mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 18:35:11 +00:00
[FIX] configure.c: Fix '.' and '..' detection
Otherwise, hidden files such as '.file.<ext>' would be ignored.
This commit is contained in:
parent
1be19d4b8d
commit
ecbc211003
1 changed files with 2 additions and 1 deletions
|
|
@ -293,7 +293,8 @@ collect_sources(char *dir, bool head, char *ext)
|
|||
while ((ent = readdir(handle)))
|
||||
{
|
||||
char *name = ent->d_name;
|
||||
if (*name == '.') continue;
|
||||
|
||||
if (!strcmp(name, ".") || !strcmp(name, "..")) continue;
|
||||
|
||||
if (strlen(name) > strlen(ext) &&
|
||||
!strcmp(name + strlen(name) - strlen(ext), ext))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue