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/sbincute-signatures
parent
9a1ab8e6fc
commit
502e5612cc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue