mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +00:00
Set flags for OS-es without dp-type.
This commit is contained in:
parent
0bc5cdbf26
commit
b1207d54ea
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue