openbsd-ports
[Top] [All Lists]

Another bypass in pkg_add with -f

To: ports@openbsd.org
Subject: Another bypass in pkg_add with -f
From: "Brian J. Kifiak" <bk@rt.fm>
Date: 30 Aug 2001 22:33:15 -0000
Mail-followup-to: ports@openbsd.org
Sender: owner-ports@openbsd.org
(This would go to bugs@ but nothing I send there usually gets
commited.)

Index: perform.c
===================================================================
RCS file: /cvs/src/usr.sbin/pkg_install/add/perform.c,v
retrieving revision 1.20
diff -u -r1.20 perform.c
--- perform.c   2001/04/19 16:54:05     1.20
+++ perform.c   2001/08/30 22:33:28
@@ -253,7 +253,7 @@
 
             if (findmatchingname(dbdir, buf, check_if_installed, installed)) {
                pwarnx("other version '%s' already installed", installed);
-               if (find_plist_option(&Plist, "no-default-conflict") != NULL) {
+               if (find_plist_option(&Plist, "no-default-conflict") != NULL || 
Force) {
                    pwarnx("proceeding with installation anyway");
                } else {
                    code = 1;
Index: pkg_add.1
===================================================================
RCS file: /cvs/src/usr.sbin/pkg_install/add/pkg_add.1,v
retrieving revision 1.27
diff -u -r1.27 pkg_add.1
--- pkg_add.1   2001/08/17 11:13:58     1.27
+++ pkg_add.1   2001/08/30 22:33:29
@@ -120,7 +120,8 @@
 you know what you are doing!
 .It Fl f
 Force installation to proceed even if prerequisite packages are not
-installed or the requirements script fails.
+installed, the requirements script fails, or another version of the
+package is already installed.
 Although
 .Nm
 will still try to find and auto-install missing prerequisite packages,

<Prev in Thread] Current Thread [Next in Thread>