db: do not allow overwrite busybox links

we let bb use /bin and /sbin, all packages overriding busybox must
install the bins in /usr/bin and /usr/sbin
cute-signatures
Natanael Copa 2009-02-08 19:31:25 +00:00
parent 9a1ab8e6fc
commit 502e5612cc
1 changed files with 1 additions and 2 deletions

View File

@ -1047,8 +1047,7 @@ static int apk_db_install_archive_entry(void *_ctx,
if (file->diri != diri) {
opkg = file->diri->pkg;
if (opkg->name != pkg->name &&
strcmp(opkg->name->name, "busybox") != 0) {
if (opkg->name != pkg->name) {
apk_error("%s: Trying to overwrite %s owned by %s.\n",
pkg->name->name, ae->name, opkg->name->name);
return -1;