summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-04-28 20:57:57 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-04-28 20:57:57 (EDT)
commitf90182f0d9a495ac2bd6a5e56802e7f0a9e7bb29 (patch)
tree07e46ab15b8946e2d83606830514ac309146008a /src
parentc5b142576ba0b81c43bfc338eaa02e954623c59a (diff)
opk: Ignore leading "./" in requested member names
Diffstat (limited to 'src')
-rw-r--r--src/opk.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/opk.c b/src/opk.c
index 1df8832..b22938c 100644
--- a/src/opk.c
+++ b/src/opk.c
@@ -73,7 +73,11 @@ _opkg_opk_opk_add_seek_name(struct _opkg_opk_opk_seek_name **names,
if (seek_name == NULL) {
return OPKG_OPK_ERROR;
}
- seek_name->name = name;
+ if (name[0] == '.' && name[1] == '/') {
+ seek_name->name = name + 2;
+ } else {
+ seek_name->name = name;
+ }
seek_name->found = 0;
seek_name->next = *names;