From owner-cvs-src@FreeBSD.ORG Mon May 26 10:12:23 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4321137B401; Mon, 26 May 2003 10:12:23 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 944A743FA3; Mon, 26 May 2003 10:12:22 -0700 (PDT) (envelope-from lioux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4QHCM0U098576; Mon, 26 May 2003 10:12:22 -0700 (PDT) (envelope-from lioux@repoman.freebsd.org) Received: (from lioux@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4QHCMZq098575; Mon, 26 May 2003 10:12:22 -0700 (PDT) Message-Id: <200305261712.h4QHCMZq098575@repoman.freebsd.org> From: Mario Sergio Fujikawa Ferreira Date: Mon, 26 May 2003 10:12:22 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/pkg_install/lib lib.h str.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2003 17:12:24 -0000 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 , Martin Horcicka 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