lib/package_alternatives.c: fix wrong /. handling for normalizing paths.
This commit is contained in:
parent
635db51c27
commit
8bd2808108
@ -71,7 +71,7 @@ reinit:
|
|||||||
else if (strncmp(p, "/./", 3) == 0 || strncmp(p, "/.", 3) == 0) {
|
else if (strncmp(p, "/./", 3) == 0 || strncmp(p, "/.", 3) == 0) {
|
||||||
memmove(p, p+2, strlen(p+2) + 1);
|
memmove(p, p+2, strlen(p+2) + 1);
|
||||||
}
|
}
|
||||||
else if (*p == '/')
|
if (*p == '/')
|
||||||
seg = p;
|
seg = p;
|
||||||
}
|
}
|
||||||
return path;
|
return path;
|
||||||
|
Loading…
Reference in New Issue
Block a user