From: Arun Prakash Jana Date: Mon, 23 Dec 2019 14:44:03 +0000 (+0530) Subject: Set flags for OS-es without dp-type. X-Git-Tag: v2.9~130 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b1207d54ea6fc96fa7244aa5c0f32f264862afc6;p=nnn.git Set flags for OS-es without dp-type. --- diff --git a/src/nnn.c b/src/nnn.c index 33ac941c..1326d3b2 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -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;