diff options
author | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-11-30 08:31:49 +0100 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2018-11-30 17:46:01 +0000 |
commit | 10376c912854d6f153f6f0af8e78f855a3c087a9 (patch) | |
tree | fa5bf4a39b0975cec2095e63e5bb027975611339 | |
parent | a2079c65834d14836f4e89589b52c72dcf76c020 (diff) |
filescan-utils: follow symbolic links in searchflounder_6.0.5flounder_6.0.4flounder_6.0.3flounder/6.0.5flounder/6.0.4flounder/6.0.36.0.56.0.46.0.3flounder
Let the directory entities of symlink type be taken into
account.
Change-Id: Ic0197e81d1e0c761ca6a0fe9ea2dbcb56eee447b
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
-rw-r--r-- | filescan-utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/filescan-utils.c b/filescan-utils.c index f58a2c9..1a2805f 100644 --- a/filescan-utils.c +++ b/filescan-utils.c @@ -56,7 +56,9 @@ static int ScanDir(char* searchPath, CtlScanDirModeT mode, size_t extentionLen, } // Unknown type is accepted to support dump filesystems - if (dirEnt->d_type == DT_REG || dirEnt->d_type == DT_UNKNOWN) { + if (dirEnt->d_type == DT_REG || + dirEnt->d_type == DT_UNKNOWN || + dirEnt->d_type == DT_LNK) { // check prefix and extention ssize_t extentionIdx = strlen(dirEnt->d_name) - extentionLen; |