obj: objects can now be published in the namespace root

This commit is contained in:
2023-04-09 20:35:17 +01:00
parent b1b16ba19c
commit 5d9f193aa2

View File

@@ -105,7 +105,7 @@ kern_status_t object_publish(object_namespace_t *ns, const char *path, object_t
size_t path_len = strlen(path);
if (path_len == 0) {
return KERN_INVALID_ARGUMENT;
return set_add_object(ns->ns_root, obj);
}
size_t parts = 0;