mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
Userland: Remove extra slashes from find
output
I noticed while testing `find` that the output of `find` contains extra forward slashes if the root path has a trailing slash. This patch fixes that issue by passing the root path through LexicalPath before proceeding.
This commit is contained in:
parent
406c876fce
commit
33af7075e7
Notes:
sideshowbarker
2024-07-18 18:34:42 +09:00
Author: https://github.com/vkoskiv
Commit: 33af7075e7
Pull-request: https://github.com/SerenityOS/serenity/pull/6928
1 changed files with 2 additions and 2 deletions
|
@ -465,8 +465,8 @@ static void walk_tree(const char* root_path, Command& command)
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
auto root_path = parse_options(argc, argv);
|
LexicalPath root_path(parse_options(argc, argv));
|
||||||
auto command = parse_all_commands(argv);
|
auto command = parse_all_commands(argv);
|
||||||
walk_tree(root_path, *command);
|
walk_tree(root_path.string().characters(), *command);
|
||||||
return g_there_was_an_error ? 1 : 0;
|
return g_there_was_an_error ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue