diff options
author | Patrick 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) |
commit | f90182f0d9a495ac2bd6a5e56802e7f0a9e7bb29 (patch) | |
tree | 07e46ab15b8946e2d83606830514ac309146008a /src | |
parent | c5b142576ba0b81c43bfc338eaa02e954623c59a (diff) |
opk: Ignore leading "./" in requested member names
Diffstat (limited to 'src')
-rw-r--r-- | src/opk.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |