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 - Make use of DEPOROGINs (if there are any) when installing package; 2002-05-14 21:42:37 +00:00
exec.c Fix SCM ID's. 2002-04-01 09:39:07 +00:00
file.c Prevent buffer overflow in format_cmd() by properly tracking maximum 2003-01-06 07:39:02 +00:00
global.c Fix SCM ID's. 2002-04-01 09:39:07 +00:00
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 Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the struct 2002-09-21 01:28:41 +00:00
msg.c Fix SCM ID's. 2002-04-01 09:39:07 +00:00
pen.c replace __FUNCTION__ with standardized __func__. 2002-05-11 04:17:55 +00:00
pkgwrap.c Introduce notion of the package tools revision and allow to wrap all tools 2002-09-09 19:43:30 +00:00
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 Fix typos; each file has at least one s/seperat/separat/ 2002-08-11 13:05:30 +00:00