Skip to content

Commit

Permalink
tree schema UPDATE support symbolic links when searching for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed May 21, 2024
1 parent b16eda2 commit c350922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tree_schema.c
Original file line number Diff line number Diff line change
Expand Up @@ -2115,8 +2115,8 @@ lys_search_localfile_file_type(const struct dirent *file, const char *wd, struct

*skip = 0;

if (file->d_type == DT_UNKNOWN) {
/* FS does not support this field, need to call stat */
if ((file->d_type == DT_UNKNOWN) || (file->d_type == DT_LNK)) {
/* FS does not support this field or its a symbolic link, need to call stat */
if (asprintf(&str, "%s/%s", wd, file->d_name) == -1) {
LOGMEM(NULL);
rc = LY_EMEM;
Expand Down

0 comments on commit c350922

Please sign in to comment.