mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Show stat when file has single quote
This commit is contained in:
parent
d5408c4e9f
commit
379fdf50fa
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue