tree-wide: always drop unnecessary dot in path

This commit is contained in:
Yu Watanabe
2021-05-28 13:44:38 +09:00
parent 0195046449
commit 4ff361cc86
41 changed files with 91 additions and 98 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ char *sysctl_normalize(char *s) {
n = strpbrk(n + 1, "/.");
} while (n);
path_simplify(s, true);
path_simplify(s);
/* Kill the leading slash, but keep the first character of the string in the same place. */
if (*s == '/' && *(s+1))