mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Another part that needs special handling for root
This commit is contained in:
parent
3277201075
commit
f05f98e4fe
4
noice.c
4
noice.c
|
@ -468,6 +468,10 @@ nochange:
|
||||||
|
|
||||||
name = dents[cur].name;
|
name = dents[cur].name;
|
||||||
|
|
||||||
|
/* Handle root case */
|
||||||
|
if (strcmp(path, "/") == 0)
|
||||||
|
asprintf(&pathnew, "/%s", name);
|
||||||
|
else
|
||||||
asprintf(&pathnew, "%s/%s", path, name);
|
asprintf(&pathnew, "%s/%s", path, name);
|
||||||
|
|
||||||
DPRINTF_S(name);
|
DPRINTF_S(name);
|
||||||
|
|
Loading…
Reference in a new issue