ソースを参照

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;


読み込み中…
キャンセル
保存