瀏覽代碼

Set flags for OS-es without dp-type.

master
Arun Prakash Jana 5 年之前
父節點
當前提交
b1207d54ea
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/nnn.c

+ 2
- 2
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;


Loading…
取消
儲存