-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAPI: Fix file io if d_type of dirent is not supported.
It is not guaranteed that d-type of the structure dirent contains the type of a file entry. It is possible that d_type has the value DT_UNKNOWN or d_type is not supported at all. To fix this problem, the functions is_regular_file and is_directory are defined. Fixes #2927 Signed-off-by: Juergen Repp <[email protected]>
- Loading branch information
1 parent
7375e27
commit 7a25c7e
Showing
1 changed file
with
83 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters