瀏覽代碼

Wrap FILE_MIME_OPTS use in check (#622)

We leave it undefined on Solaris/Illumos because no such options exist,
so only use it if we have it.
master
Sijmen J. Mulder GitHub 5 年之前
父節點
當前提交
68b9185071
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      src/nnn.c

+ 2
- 0
src/nnn.c 查看文件

@@ -3698,9 +3698,11 @@ static bool show_stats(const char *fpath, const struct stat *sb)
}
fprintf(fp, " %s\n ", begin);

#ifdef FILE_MIME_OPTS
/* Show the file mime type */
get_output(g_buf, CMD_LEN_MAX, "file", FILE_MIME_OPTS, fpath, FALSE);
fprintf(fp, "%s", g_buf);
#endif
}
}



Loading…
取消
儲存