Explorar el Código

Show stat when file has single quote

master
Arun Prakash Jana hace 6 años
padre
commit
379fdf50fa
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: A75979F35C080412
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/nnn.c

+ 2
- 2
src/nnn.c Ver fichero

@@ -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);



Cargando…
Cancelar
Guardar