diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-02-24 13:37:54 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-03-10 16:28:59 +0100 |
commit | fa8c876031e4bc96c21f7f4d2f9161b1e5f64da7 (patch) | |
tree | 7b927d0e91738c485c4a6a80c588e7bbf87191b9 /src/other_tools | |
parent | 21af38d3aa8fb70172d1951d68823c11d61c5c05 (diff) | |
download | justbuild-fa8c876031e4bc96c21f7f4d2f9161b1e5f64da7.tar.gz |
Promote IsValidFileName to a public function of the path utils
... instead of being private to parse_archive.
Diffstat (limited to 'src/other_tools')
-rw-r--r-- | src/other_tools/utils/parse_archive.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/other_tools/utils/parse_archive.cpp b/src/other_tools/utils/parse_archive.cpp index 848eaace..0f94d26e 100644 --- a/src/other_tools/utils/parse_archive.cpp +++ b/src/other_tools/utils/parse_archive.cpp @@ -103,16 +103,6 @@ auto ParseArchiveContent(ExpressionPtr const& repo_desc, .origin = origin}; } -auto IsValidFileName(const std::string& s) -> bool { - if (s.find_first_of("/\0") != std::string::npos) { - return false; - } - if (s.empty() or s == "." or s == "..") { - return false; - } - return true; -} - auto ParseArchiveDescription(ExpressionPtr const& repo_desc, std::string const& repo_type, std::string const& origin, |