Parcourir la source

Another part that needs special handling for root

master
lostd il y a 10 ans
Parent
révision
f05f98e4fe
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. +5
    -1
      noice.c

+ 5
- 1
noice.c Voir le fichier

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


Chargement…
Annuler
Enregistrer