diff options
author | 2019-12-23 20:14:03 +0530 | |
---|---|---|
committer | 2019-12-23 20:14:03 +0530 | |
commit | b1207d54ea6fc96fa7244aa5c0f32f264862afc6 (patch) | |
tree | 816a5a0fd000765168361a9e76e75d3949b6691e | |
parent | 0bc5cdbf26ff6ea0156323d824356c876f5ca1fe (diff) | |
download | nnn-b1207d54ea6fc96fa7244aa5c0f32f264862afc6.tar.gz |
Set flags for OS-es without dp-type.
-rw-r--r-- | src/nnn.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3765,10 +3765,9 @@ static int dentfill(char *path, struct entry **dents) goto exit; #ifdef __sun - if (cfg.blkorder) { /* no d_type */ + flags = AT_SYMLINK_NOFOLLOW; /* no d_type */ #else if (cfg.blkorder || dp->d_type == DT_UNKNOWN) { -#endif /* * Optimization added for filesystems which support dirent.d_type * see readdir(3) @@ -3778,6 +3777,7 @@ static int dentfill(char *path, struct entry **dents) */ flags = AT_SYMLINK_NOFOLLOW; } +#endif do { namep = dp->d_name; |