summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-02-08 19:31:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-02-08 19:31:25 +0000
commit502e5612cc87f4df52e3cc719eda412b3bdd56ed (patch)
treef7468e548bd677655010388999e5dacf003590b2
parent9a1ab8e6fcead217ae543ee4e43b3b39d7767509 (diff)
downloadapk-tools-502e5612cc87f4df52e3cc719eda412b3bdd56ed.tar.bz2
apk-tools-502e5612cc87f4df52e3cc719eda412b3bdd56ed.tar.xz
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
-rw-r--r--src/database.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c
index 6a99ea6..621c03c 100644
--- a/src/database.c
+++ b/src/database.c
@@ -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;