Kaynağa Gözat

Show stat when file has single quote

master
Arun Prakash Jana 6 yıl önce
ebeveyn
işleme
379fdf50fa
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: A75979F35C080412
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +2
    -2
      src/nnn.c

+ 2
- 2
src/nnn.c Dosyayı Görüntüle

@@ -2440,9 +2440,9 @@ static bool show_stats(const char *fpath, const char *fname, const struct stat *
if (fd == -1)
return FALSE;

r = xstrlcpy(g_buf, "stat \'", 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 - 2] = '\"';
g_buf[r - 1] = '\0';
DPRINTF_S(g_buf);



Yükleniyor…
İptal
Kaydet