bin/128058: pkg_create -n flag does not work (lack of code)

Jeremy Chadwick koitsu at
Mon Oct 13 13:40:07 UTC 2008

>Number:         128058
>Category:       bin
>Synopsis:       pkg_create -n flag does not work (lack of code)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 13 13:40:06 UTC 2008
>Originator:     Jeremy Chadwick
>Release:        FreeBSD 7.1-PRERELEASE amd64
System: FreeBSD icarus.home.lan 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Oct 2 03:04:20 PDT 2008 root at icarus.home.lan:/usr/obj/usr/src/sys/PDSMI_PLUS_RELENG_7_amd64 amd64
	The -n flag is documented in the pkg_create(1) man page for 7.1-PRERELEASE
	as being "no clobber" mode, but there's no code for it.  It's listed in
	the opts[] array, but there's no csupport for it in main().

	This is specific to RELENG_7.
	Try to use pkg_create -n, you'll receive usage syntax.
	The necessary code nees to be put in place.  The below patch is based
	on what's in CURRENT.;r2=1.46;f=h

--- /usr/src/usr.sbin/pkg_install/create/main.c	2008-06-17 03:47:24.000000000 -0700
+++ ./main.c	2008-10-13 06:29:53.840396271 -0700
@@ -208,6 +208,10 @@
 	    Recursive = TRUE;
+	case 'n':
+	    Regenerate = FALSE;
+	    break;
 	case 0:
 	    if (Help)

More information about the freebsd-bugs mailing list