Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 2001 05:11:09 +1100 (EST)
From:      andrew@ugh.net.au
To:        FreeBSD-gnats-submit@freebsd.org, obrien@freebsd.org
Subject:   bin/24310: pkg_add has a misplaced )
Message-ID:  <20010113181109.81F2FA857@starbug.ugh.net.au>

next in thread | raw e-mail | index | archive | help

>Number:         24310
>Category:       bin
>Synopsis:       pkg_add has a misplaced )
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 13 10:20:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andrew
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
UgH!
>Environment:

pkg_install/add/perform.c revision 1.58

>Description:

A misplaced bracket causes the following error to be emitted from pkg_add -v:

Running mtree for poppwd-1.0..
mtree -U -f +MTREE_DIRS -d -e -p /usr/local >/dev/null
pkg_add: mtree returned a non-zero status - continuing

>How-To-Repeat:

pkg_add <blah>

>Fix:


--- perform.c.orig	Sun Jan 14 04:03:13 2001
+++ perform.c	Sun Jan 14 04:03:57 2001
@@ -366,7 +366,7 @@
 	if (Verbose)
 	    printf("mtree -U -f %s -d -e -p %s >%s\n", MTREE_FNAME, p ? p->name : "/", _PATH_DEVNULL);
 	if (!Fake) {
-	    if (vsystem("/usr/sbin/mtree -U -f %s -d -e -p %s >%s", MTREE_FNAME, p ? p->name : "/"), _PATH_DEVNULL)
+	    if (vsystem("/usr/sbin/mtree -U -f %s -d -e -p %s >%s", MTREE_FNAME, p ? p->name : "/", _PATH_DEVNULL))
 		warnx("mtree returned a non-zero status - continuing");
 	}
 	unlink(MTREE_FNAME);

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010113181109.81F2FA857>