Message ID | mailman.13426.1651847943.441203.openwrt-devel@lists.openwrt.org |
---|---|
State | New |
Headers | show |
Series | [opkg] Don't filter out directories when claiming ownership of a file. | expand |
diff --git a/libopkg/pkg_hash.c b/libopkg/pkg_hash.c index 11b1a06..fb7e627 100644 --- a/libopkg/pkg_hash.c +++ b/libopkg/pkg_hash.c @@ -763,10 +763,6 @@ pkg_t *file_hash_get_file_owner(const char *file_name) void file_hash_set_file_owner(const char *file_name, pkg_t * owning_pkg) { pkg_t *old_owning_pkg; - int file_name_len = strlen(file_name); - - if (file_name[file_name_len - 1] == '/') - return; file_name = strip_offline_root(file_name);