Skip to content
Snippets Groups Projects
Commit 2a5c9a24 authored by Yorhel's avatar Yorhel
Browse files

Fixed display of one-component-after-root directory

Bug introduced in ece21a66
It's amazing how many mistakes one person can make in a few hours.
parent 91b131a0
No related branches found
No related tags found
No related merge requests found
...@@ -344,13 +344,13 @@ void calc_process() { ...@@ -344,13 +344,13 @@ void calc_process() {
strcpy(t->name, orig->name); strcpy(t->name, orig->name);
} else { } else {
t->name = malloc(strlen(path)+strlen(name)+1); t->name = malloc(strlen(path)+strlen(name)+1);
t->name[0] = 0;
if(strcmp(path, "/")) if(strcmp(path, "/"))
strcpy(t->name, path); strcpy(t->name, path);
if(strcmp(name, ".")) { if(strcmp(name, ".")) {
strcat(t->name, "/"); strcat(t->name, "/");
strcat(t->name, name); strcat(t->name, name);
} else }
t->name[0] = 0;
} }
root = t; root = t;
curdev = fs.st_dev; curdev = fs.st_dev;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment