Explorar el Código

Another part that needs special handling for root

master
lostd hace 10 años
padre
commit
f05f98e4fe
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      noice.c

+ 5
- 1
noice.c Ver fichero

@@ -468,7 +468,11 @@ nochange:

name = dents[cur].name;

asprintf(&pathnew, "%s/%s", path, name);
/* Handle root case */
if (strcmp(path, "/") == 0)
asprintf(&pathnew, "/%s", name);
else
asprintf(&pathnew, "%s/%s", path, name);

DPRINTF_S(name);
DPRINTF_S(pathnew);


Cargando…
Cancelar
Guardar