1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/usr.sbin
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
..
ac Remove unused #includes. Eliminate castings by using size_t instead of int. 2002-10-17 13:19:47 +00:00
accton Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
acpi Support functions for the new ACPI import. 2003-04-29 18:50:34 +00:00
adduser Document the -g option in the usage message. 2003-03-23 23:06:44 +00:00
amd style.Makefile(5) 2003-04-04 17:49:21 +00:00
ancontrol Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
apm Assorted mdoc(7) fixes. 2003-05-22 11:52:23 +00:00
apmd english(4) police. 2002-12-27 12:15:40 +00:00
arp Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
atm de-__P() 2002-10-10 00:32:55 +00:00
bluetooth Reapply mdoc(7) fixes that got accidentally lost in the last 2003-05-20 21:01:21 +00:00
boot0cfg Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
boot98cfg s/DIOCGPC98/DIOCSPC98/ 2003-05-02 14:55:42 +00:00
bootparamd The .Nm utility 2002-07-14 14:47:15 +00:00
btxld Make this work on different endianness machines. 2003-03-11 13:48:58 +00:00
burncd Assorted mdoc(7) fixes. 2003-05-22 11:52:23 +00:00
cdcontrol Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
chkgrp Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
chown Erase whitespace at EOL. 2003-05-22 11:56:41 +00:00
chroot Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
ckdist - Align the function prototype of the external `crc' function with 2003-03-13 23:34:18 +00:00
config Don't convert the kernel ident to uppercase when writing the Makefile. 2003-04-24 00:52:58 +00:00
cron Allow inner whitespace in the right-hand side of an environment variable 2003-02-10 11:20:58 +00:00
crunch The second chdir(1) that I trimmed is needed too 2003-04-23 04:28:35 +00:00
ctm Remove the maximum patch size limit. It was intended as a check against 2003-04-07 08:09:53 +00:00
daemon style.Makefile(5) 2003-04-04 17:49:21 +00:00
dev_mkdb Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
devinfo -v now also prints the pnpinfo and location information for the devices 2003-02-17 18:56:54 +00:00
digictl style.Makefile(5) 2003-04-04 17:49:21 +00:00
diskinfo Correct a type in the bugs section. Also turn it into a list. 2003-05-11 22:22:10 +00:00
editmap Add editmap, a new utility which comes with sendmail 8.12 for editing maps in 2002-02-17 22:02:59 +00:00
edquota Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
elf2exe The .Nm utility 2002-07-14 14:47:15 +00:00
extattr mdoc(7) police: Scheduled sweep. 2003-02-24 22:53:26 +00:00
extattrctl When giving examples of how to use extattrctl(8) to configure UFS1 2003-05-14 20:31:06 +00:00
faithd Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
fdcontrol Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
fdformat Include <string.h> for some prototypes, rather than depending on 2002-04-01 21:13:17 +00:00
fdread Use `The .Nm utility' 2002-04-20 12:27:18 +00:00
fdwrite Use `The .Nm utility' 2002-04-20 12:27:18 +00:00
fwcontrol Nitpicking. 2003-05-22 11:54:53 +00:00
getfmac sigh... revert the previous change; this isn't getpmac 2003-01-15 03:13:51 +00:00
getpmac mdoc(7) police: Scheduled sweep. 2003-02-24 22:53:26 +00:00
gifconfig english(4) police. 2002-12-27 12:15:40 +00:00
gstat Install the gstat manual page. 2003-04-28 11:54:01 +00:00
i4b Oops. Back out a style "fix" in the previous commit. SRCS must be defined 2003-04-13 14:21:56 +00:00
ifmcstat style.Makefile(5) 2003-04-04 17:49:21 +00:00
inetd Under some unusual conditions, inetd can leak a open file discriptor 2003-02-23 16:54:19 +00:00
iostat style.Makefile(5) 2003-04-04 17:49:21 +00:00
ipftest * ipftest now compiles with IPFILTER_LOG and needs ip_log.c to be able to 2002-03-20 08:57:10 +00:00
ipresend
ipsend
iptest
IPXrouted "Advertizing" is ugly and possibly incorrect; use "Advertising" instead. 2003-02-27 14:07:49 +00:00
jail Force output of jail ID (if necessary) before excuting the command, 2003-04-21 17:20:48 +00:00
jexec o Add jls(8) for listing active jails. 2003-04-09 03:04:12 +00:00
jls IP addresses can be up to 15 characters long, not 12. 2003-04-22 13:24:56 +00:00
kbdcontrol Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
kbdmap mdoc(7) police: bump document date for the C rewrite, nit. 2002-12-04 14:45:48 +00:00
kernbb Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
keyadmin Arrange to not have /* inside a comment. Typo fix. 2002-10-16 15:56:13 +00:00
keyserv Use arc4random() instead of random() when generating the master key. 2003-02-18 01:35:58 +00:00
kgmon Use correct item to track max width of list 2003-03-24 20:55:28 +00:00
kgzip Convert kgzip(8) to be an i386 cross-tool. This is needed for 2003-03-11 11:45:43 +00:00
kldxref style.Makefile(5) 2003-04-04 17:49:21 +00:00
lastlogin The .Nm utility 2002-07-14 14:47:15 +00:00
lpr Change DEFMX to 0. This removes the size limit for print jobs by default. 2003-03-27 08:33:01 +00:00
lptcontrol Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
mailstats Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
mailwrapper mdoc(7) police: Scheduled sweep. 2003-02-24 22:53:26 +00:00
makemap Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
manctl The .Nm utility 2002-07-14 14:47:15 +00:00
memcontrol mdoc(7) police: markup fixes. 2002-11-27 15:31:08 +00:00
mergemaster Preserve directory structure in PRESERVED_FILES_DIR to avoid 2003-05-03 06:35:19 +00:00
mixer Assorted mdoc(7) fixes. 2003-05-22 11:52:23 +00:00
mld6query The .Nm utility 2002-07-14 14:47:15 +00:00
mlxcontrol
mount_nwfs s/filesystem/file system/g as discussed on -developers 2002-08-21 18:11:48 +00:00
mount_portalfs s/filesystem/file system/g as discussed on -developers 2002-08-21 18:11:48 +00:00
mount_smbfs This really isn't WARNS clean. 2002-12-30 09:38:46 +00:00
mountd style.Makefile(5) 2003-04-04 17:49:21 +00:00
moused Grammar and punctuation fixes 2003-04-25 22:31:06 +00:00
mptable
mrouted Backed out previous commit. Use ${LIBMROUTED} in LDADD again instead of 2003-04-16 14:53:51 +00:00
mtest The .Nm utility 2002-07-14 14:47:15 +00:00
mtree Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
named "Fixed" LDADD by backing out part of the previous commit. -lfoo in 2003-04-16 13:50:52 +00:00
named.reload
named.restart
ndc style.Makefile(5) 2003-04-04 17:49:21 +00:00
ndp Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ 2002-12-30 21:18:15 +00:00
newsyslog Fix age_old_log checking so that it will notice log files which were 2003-05-05 23:38:03 +00:00
nfsd style.Makefile(5) 2003-04-04 17:49:21 +00:00
ngctl Add missing "of". 2002-12-14 00:20:43 +00:00
nghook The .Nm utility 2002-07-14 14:47:15 +00:00
nologin The .Nm utility 2002-07-06 19:34:18 +00:00
nslookup style.Makefile(5) 2003-04-04 17:49:21 +00:00
nsupdate
ntp style.Makefile(5) 2003-04-04 17:49:21 +00:00
ofwdump style.Makefile(5) 2003-04-04 17:49:21 +00:00
pccard Remove obsolete compatibility ifdef. 2003-04-23 23:41:48 +00:00
pciconf Moved $FreeBSD$ tag to where it belongs. 2003-05-22 11:55:26 +00:00
pcvt Call exit(0), not exit. 2003-04-29 19:53:00 +00:00
periodic The .Nm utility 2002-07-14 14:47:15 +00:00
pkg_install pkg_create incorrectly does not add trailing '\n' when it receives 2003-05-26 17:12:22 +00:00
pnpinfo style.Makefile(5) 2003-04-04 17:49:21 +00:00
ppp Add a pretty cheesy hack to avoid a gcc-3.2.2 ICE (internal compiler 2003-05-25 07:39:06 +00:00
pppctl style.Makefile(5) 2003-04-04 17:49:21 +00:00
pppd Retire the useless NOSECURE knob. 2003-05-19 15:52:01 +00:00
pppstats Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
praliases Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
prefix Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ 2002-12-30 21:18:15 +00:00
procctl Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
pstat Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
pw Add information about the log file. 2003-05-08 00:28:36 +00:00
pwd_mkdb Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
quot Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
quotaon Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
rarpd Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
raycontrol Don't dereference a NULL pointer when we don't have a ':' in the 2003-04-20 03:34:59 +00:00
repquota Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
rip6query The .Nm utility 2002-07-14 14:47:15 +00:00
rmt Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
route6d Add missing srand() (sranddev() for FreeBSD) 2003-02-11 02:09:05 +00:00
rpc.lockd When getting back an NLM DENIED response for a requested lock from the 2003-05-15 03:19:30 +00:00
rpc.statd style.Makefile(5) 2003-04-04 17:49:21 +00:00
rpc.umntall Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
rpc.yppasswdd Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
rpc.ypupdated Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
rpc.ypxfrd Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
rpcbind style.Makefile(5) 2003-04-04 17:49:21 +00:00
rrenumd english(4) police. 2002-12-27 12:15:40 +00:00
rtadvd - fixed byte order of route lifetimes in route info opptions. 2003-04-10 07:31:34 +00:00
rtprio Use `The .Nm utility' 2002-04-20 12:27:18 +00:00
rtsold style.Makefile(5) 2003-04-04 17:49:21 +00:00
rwhod style.Makefile(5) 2003-04-04 17:49:21 +00:00
sa Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
sade Add __amd64__ ifdefs to enable the bootblock handling code, slices, etc. 2003-05-24 21:12:14 +00:00
sendmail Retire the useless NOSECURE knob. 2003-05-19 15:52:01 +00:00
setfmac style.Makefile(5) 2003-04-04 17:49:21 +00:00
setkey Use NI_xxx macros. 2003-04-16 09:53:29 +00:00
setpmac mdoc(7) police: Scheduled sweep. 2003-02-24 22:53:26 +00:00
sgsc
sicontrol mdoc(7) police: Deal with self-xrefs. 2002-12-24 13:41:48 +00:00
sliplogin The .Nm utility 2002-07-14 14:47:15 +00:00
slstat Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
spkrtest The .Nm utility 2002-07-14 14:47:15 +00:00
spray do not call clnt_spcreateerror nor clnt_sperror with a NULL pointer, instead 2002-07-15 18:53:52 +00:00
stallion Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
sysinstall Add __amd64__ ifdefs to enable the bootblock handling code, slices, etc. 2003-05-24 21:12:14 +00:00
syslogd Avoid a corrupt timestamp on the console 2003-05-17 20:07:54 +00:00
tcpdchk
tcpdmatch
tcpdump Retire the useless NOSECURE knob. 2003-05-19 15:52:01 +00:00
timed Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ 2002-12-30 21:18:15 +00:00
traceroute Update for traceroute 1.4a12 2002-07-28 02:27:07 +00:00
traceroute6 Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
trpt Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
tzsetup style.Makefile(5) 2003-04-04 17:49:21 +00:00
ugidfw style.Makefile(5) 2003-04-04 17:49:21 +00:00
usbd A few grammatical improvements. 2003-05-04 22:13:00 +00:00
usbdevs The .Nm utility 2002-07-14 14:47:15 +00:00
vidcontrol mdoc(7) police: Nits. 2003-03-02 21:04:21 +00:00
vipw Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
vnconfig
watch Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
wicontrol Assorted mdoc(7) fixes. 2003-05-22 11:52:23 +00:00
wlconfig The .Nm utility 2002-07-14 14:47:15 +00:00
yp_mkdb Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
ypbind Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
yppoll Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
yppush Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
ypserv Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
ypset Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
zic style.Makefile(5) 2003-04-04 17:49:21 +00:00
Makefile Add a pretty cheesy hack to avoid a gcc-3.2.2 ICE (internal compiler 2003-05-25 07:39:06 +00:00
Makefile.inc