瀏覽代碼

Fix issue with file details

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

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

@@ -2286,6 +2286,7 @@ static bool show_stats(const char *fpath, const char *fname, const struct stat *
{
int fd;
char *p, *begin = g_buf;
size_t r;
FILE *fp;

if (g_tmpfpath[0])
@@ -2298,8 +2299,11 @@ static bool show_stats(const char *fpath, const char *fname, const struct stat *
if (fd == -1)
return FALSE;

xstrlcpy(g_buf, "stat ", 6);
xstrlcpy(g_buf + 5, fpath, PATH_MAX);
r = xstrlcpy(g_buf, "stat \'", PATH_MAX);
r += xstrlcpy(g_buf + r - 1, fpath, PATH_MAX);
g_buf[r - 2] = '\'';
g_buf[r - 1] = '\0';
DPRINTF_S(g_buf);

fp = popen(g_buf, "r");
if (fp != NULL) {


Loading…
取消
儲存