os/path.h: fix misleading comments

Issue #4708
This commit is contained in:
Norman Feske 2023-06-01 15:36:29 +02:00
parent 4a15621dc8
commit 250c16ddcf

View File

@ -86,7 +86,7 @@ class Genode::Path_base
for (; *path; path++) {
if (path[0] != '/') continue;
/* strip superfluous dots, e.g., "/abs/./path/" -> "/abs/path" */
/* strip superfluous dots, e.g., "/abs/./path/" -> "/abs/path/" */
while (path[1] == '.' && path[2] == '/') {
remove_char(path);
remove_char(path);
@ -99,7 +99,7 @@ class Genode::Path_base
for (; *path; path++) {
if (path[0] != '/') continue;
/* strip superfluous slashes, e.g., "//path/" -> "/path" */
/* strip superfluous slashes, e.g., "//path/" -> "/path/" */
while (path[1] == '/')
remove_char(path);
}