freebsd-dev/usr.sbin/pkg_install/lib
Mario Sergio Fujikawa Ferreira fc12c41ca3 pkg_create incorrectly does not add trailing '\n' when it receives
either COMMENT or DESCR from the command line. When a port is
installed, one gets both +COMMENT and +DESCR files with a trailing
'\n' character. However, +COMMENT does not contain a trailing '\n'
when it is installed from a package due to this behavior of pkg_create.

 Therefore, make sure it behaves exactly the same regardless of
where got its information; either command line or files. The modified
functions are used by pkg_create.

PR:		52097
Reviewed by:	bento, kris,
		portmgr, re,
		Michael Nottebrock <michaelnottebrock@gmx.net>,
		Martin Horcicka <horcicka@FreeBSD.cz>
Approved by:	re (scottl)
MFC after:	1 week
2003-05-26 17:12:22 +00:00
..
deps.c
exec.c
file.c Prevent buffer overflow in format_cmd() by properly tracking maximum 2003-01-06 07:39:02 +00:00
global.c
lib.h pkg_create incorrectly does not add trailing '\n' when it receives 2003-05-26 17:12:22 +00:00
Makefile Break fileGetURL() out into its own file so that pkg_install/lib consumers 2002-11-06 08:57:03 +00:00
match.c
msg.c
pen.c
pkgwrap.c
plist.c * Add explicit conflict-checking to the package tools. Packages can 2003-04-17 09:56:05 +00:00
str.c pkg_create incorrectly does not add trailing '\n' when it receives 2003-05-26 17:12:22 +00:00
url.c Revert url.c:1.2: there was a race condition between when I produced 2003-04-17 03:51:06 +00:00
version.c