Date: Mon, 26 May 2003 10:12:22 -0700 (PDT) From: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/pkg_install/lib lib.h str.c Message-ID: <200305261712.h4QHCMZq098575@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
lioux 2003/05/26 10:12:22 PDT
FreeBSD src repository (doc,ports committer)
Modified files:
usr.sbin/pkg_install/lib lib.h str.c
Log:
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
Revision Changes Path
1.49 +1 -0 src/usr.sbin/pkg_install/lib/lib.h
1.15 +22 -1 src/usr.sbin/pkg_install/lib/str.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305261712.h4QHCMZq098575>
