From owner-freebsd-stable Mon Jun 18 14:21:25 2001 Delivered-To: freebsd-stable@freebsd.org Received: from elisa.utopianet.net (elisa.utopianet.net [212.210.231.2]) by hub.freebsd.org (Postfix) with ESMTP id 00F0337B403; Mon, 18 Jun 2001 14:21:20 -0700 (PDT) (envelope-from rlucia@iscanet.com) Received: from merlino.iscanet.com (root@[217.59.173.229]) by elisa.utopianet.net (8.9.1a/8.9.1) with ESMTP id XAA25965; Mon, 18 Jun 2001 23:21:10 +0200 (CEST) Received: from [10.0.0.1] (alice.iscanet.com [217.59.173.230]) (authenticated) by merlino.iscanet.com (8.11.3/8.11.2) with ESMTP id f5ILLGY41952; Mon, 18 Jun 2001 23:21:16 +0200 (CEST) (envelope-from rlucia@iscanet.com) Mime-Version: 1.0 X-Sender: rluciamac@imap.iscanet.com (Unverified) Message-Id: Date: Mon, 18 Jun 2001 23:21:06 +0200 To: freebsd-stable@freebsd.org From: Rocco Lucia Subject: make world breakage in src/usr.sbin/pkg_install/add/main.c Cc: pirzyk@freebsd.org Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I installed a fresh system copy from 4.3-R CDROM and cvsuped to -STABLE. Make world breaks in usr.sbin/pkg_install/add/main.c This should fix: ----------------------------------- CUT HERE ----------------------------------- --- main.c.orig Mon Jun 18 18:16:14 2001 +++ main.c Mon Jun 18 23:07:56 2001 @@ -144,9 +144,8 @@ if (fexists(*argv)) /* refers to a file directly */ pkgs[ch] = realpath(*argv, pkgnames[ch]); else { /* look for the file in the expected places */ - if (!(cp = fileFindByPath(NULL, *argv))) + if ((cp = fileFindByPath(NULL, *argv))) /* let pkg_do() fail later, so that error is reported */ - else pkgs[ch] = strcpy(pkgnames[ch], cp); } } -------------------------------------------------------------------------------- -- Rocco Lucia - rlucia@iscanet.com Iscanet Internet Services http://elisa.utopianet.net/~rlucia System and Network Admin C6E6 AC9A 1361 FB38 B47A 2792 9FC4 C52F 7A68 4468 Free unices for a free world. Support *BSD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message