mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't error out while searching for empty directories.
Submitted by: Bakul Shah <bakul at bitblocks dot com>
This commit is contained in:
parent
2ea8da28e9
commit
e66a677b27
1 changed files with 1 additions and 1 deletions
|
|
@ -559,7 +559,7 @@ f_empty(PLAN *plan __unused, FTSENT *entry)
|
|||
empty = 1;
|
||||
dir = opendir(entry->fts_accpath);
|
||||
if (dir == NULL)
|
||||
err(1, "%s", entry->fts_accpath);
|
||||
return 0;
|
||||
for (dp = readdir(dir); dp; dp = readdir(dir))
|
||||
if (dp->d_name[0] != '.' ||
|
||||
(dp->d_name[1] != '\0' &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue