Allow .. in paths for userctl
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user