Allow .. in paths for userctl

This commit is contained in:
2026-06-17 17:34:07 +02:00
parent 48c52772cb
commit d349d77085
4 changed files with 12 additions and 12 deletions

View File

@@ -47,7 +47,7 @@ static void set_modified_time(Library_Entry *entry) {
static bool create_entry(struct dirent *dir_entry, const char *parent_path, Library_Entry *result) {
SV name = sv(dir_entry->d_name);
SV parent_path_sv = sv(parent_path);
Noh_String full_path = build_path(false, &parent_path_sv, &name);
Noh_String full_path = build_path(false, false, &parent_path_sv, &name);
int type = dir_entry->d_type;
// Check if the entry is relevant.