diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/opk.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -86,6 +86,8 @@ _opkg_opk_opk_add_seek_name(struct _opkg_opk_opk_seek_name **head, } if (name[0] == '.' && name[1] == '/') { new->name = name + 2; + } else if (name[0] == '/') { + new->name = name + 1; } else { new->name = name; } @@ -194,6 +196,8 @@ _opkg_opk_opk_check_name(const char *member_name, if (member_name[0] == '.' && member_name[1] == '/') { member_name += 2; + } else if (member_name[0] == '/') { + member_name += 1; } /* Check each requested name. */ |