diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-24 23:47:22 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-01-25 13:41:09 +0330 |
commit | 67ce9e28a5f8d800176dd2749f884be8f7f64de2 (patch) | |
tree | 0a753b34c2d7a3dad11097fac81fc4c522fee5e3 /Kernel/FileSystem/VirtualFileSystem.cpp | |
parent | d49d2c7ec4cbe2c0792cf112055a6f5eca79dd63 (diff) | |
download | serenity-67ce9e28a5f8d800176dd2749f884be8f7f64de2.zip |
AK: Standardize the behaviour of GenericLexer::consume_until overloads
Before this commit all consume_until overloads aside from the Predicate
one would consume (and ignore) the stop char/string, while the
Predicate overload would not, in order to keep behaviour consistent,
the other overloads no longer consume the stop char/string as well.
Diffstat (limited to 'Kernel/FileSystem/VirtualFileSystem.cpp')
-rw-r--r-- | Kernel/FileSystem/VirtualFileSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp index 873d71535e..8a4f68737b 100644 --- a/Kernel/FileSystem/VirtualFileSystem.cpp +++ b/Kernel/FileSystem/VirtualFileSystem.cpp @@ -865,7 +865,7 @@ ErrorOr<NonnullRefPtr<Custody>> VirtualFileSystem::resolve_path_without_veil(Str if (path_lexer.is_eof()) extra_iteration = false; auto part = path_lexer.consume_until('/'); - path_lexer.consume_specific('/'); + path_lexer.ignore(); Custody& parent = custody; auto parent_metadata = parent.inode().metadata(); |