1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00
freebsd/usr.sbin
Kyle Evans c04ad15ca7 config: address a number of Coverity issues
Highlights:
- Various memory leaks
- FILE* leaks
- `tsize` in moveifchanged() is only needed if !changed, and `from_sb`
    is only valid if !changed.
- Simplify trivially true expression
- Sanity check elfdump size output (+ fix variable sizes) (des@)

CID:	1471167, 1006391, 1505333, 1505275, 1505349, 1505306, 1505232
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D38643
2023-02-16 14:37:06 -06:00
..
ac pkgbase: Put accounting utilities in the acct package 2022-08-16 21:15:19 +02:00
accton
acpi acpica: Quiet a -Wdangling-pointer warning in AcpiUtInitStackPtrTrace. 2022-12-04 16:28:59 -08:00
adduser
apm Fix build with -DNO_ROOT 2021-11-26 12:51:08 +01:00
apmd
arp arp(8): use getifaddrs(3) instead of ioctl(SIOCGIFCONF) 2022-07-04 20:56:29 -07:00
audit
auditd
auditdistd
auditreduce
authpf authpf: Start using libpfctl 2021-05-07 22:13:31 +02:00
autofs pkgbase: Put autofs config files in the FreeBSD-autofs package 2021-12-21 10:17:25 +01:00
bhyve bhyve: add emulation for qemu's fwcfg data port 2023-02-14 08:28:49 +01:00
bhyvectl bhyve/snapshot: ..back to SOCK_STREAM 2022-04-28 07:43:01 -08:00
bhyveload bhyveload: open guest boot disk image O_RDWR 2022-12-05 08:22:45 -09:00
binmiscctl imgact_binmisc: Optionally pre-open the interpreter vnode 2022-12-08 14:32:03 +00:00
blacklistctl
blacklistd
bluetooth iwmbtfw(8): Fix a typo in a kernel message 2023-01-11 12:22:18 +01:00
boot0cfg
bootparamd Fix too small hostname buffer in bootparamd 2022-02-06 15:25:49 +01:00
boottrace boottrace(8): small wrapper utility 2022-02-21 20:16:12 -04:00
bsdconfig bsdconfig: correct name of the wpa_supplicant config file 2023-01-16 18:56:45 +00:00
bsdinstall bsdconfig, bsdinstall: Refresh mirrors list 2023-01-16 13:48:06 -03:00
bsnmpd bsnmpget.1: Fix a typo in the man page 2023-01-19 14:18:52 +01:00
btxld
camdd
cdcontrol
certctl Strip trailing slashes from DESTDIR 2023-02-04 12:11:02 -07:00
chkgrp
chown chown: see also chmod. 2022-08-24 20:21:39 +02:00
chroot chroot: fix typo in usage 2021-07-21 10:16:11 +01:00
ckdist
clear_locks pkgbase: Create a FreeBSD-nfs package 2021-06-19 17:49:50 +02:00
config config: address a number of Coverity issues 2023-02-16 14:37:06 -06:00
cpucontrol cpucontrol(8): Fix a typo in an error message 2022-01-26 10:36:42 +01:00
crashinfo Indicate that kgdb.1 is from ports/devel/gdb. 2022-08-14 15:17:29 +02:00
cron cron(8): Fix a typo in a source code comment 2022-09-03 15:00:29 +02:00
crunch crunchide(1): Fix a typo in a comment 2022-07-16 13:32:47 +02:00
ctladm Missed chunk of 0acc026dda. 2022-12-03 11:26:22 -05:00
ctld ctld: if adding a target fails, retry it on the next reload 2022-10-21 18:28:45 -06:00
cxgbetool cxgbetool(8): Fix common typos in sysctl descriptions 2023-01-19 14:22:00 +01:00
daemon daemon: add long_opts 2023-02-09 22:36:07 -06:00
dconschat dconschat(8): Fix a typo in an error message 2022-10-25 12:58:55 +02:00
devctl man pages: Fix typo 2022-04-07 14:58:13 +02:00
devinfo pkgbase: Put devmatch in its own package 2022-10-26 19:46:38 +02:00
diskinfo
dumpcis
editmap
edquota
efibootmgr efibootmgr: Add --efidev (-u) to discover UEFI's device path to a dev or file 2023-02-16 08:54:39 -07:00
efidp efidp: Remove write only variable 2023-02-15 16:03:54 -07:00
efitable efitable(8): Add missing -u in the manpage 2022-01-28 03:04:38 +02:00
efivar efivar(8): Fix a typo in a source code comment 2022-04-02 13:34:46 +02:00
etcupdate etcupdate: Chase test case after pwd_mkdb(8) no longer copies comments. 2023-01-29 20:40:58 -08:00
extattr
extattrctl
fdcontrol
fdformat
fdread
fdwrite The fdformat man page is in section 8 (not 1). 2022-08-14 18:14:52 +02:00
fifolog fifolog: Rename yyparse() to getdate_yyparse(). 2021-06-07 06:31:50 +00:00
flowctl
freebsd-update uname.1: Clarify the -r option 2022-09-16 13:27:54 +02:00
fstyp Add a flags parameter to the ffs_sbget() function that reads UFS superblocks. 2022-07-30 22:51:38 -07:00
ftp-proxy pkgbase: Put ftp-proxy in the FreeBSD-pf package 2023-02-08 08:49:43 +01:00
fwcontrol fwcontrol: Disable -Wzero-length-bounds warnings. 2022-12-04 16:30:20 -08:00
getfmac
getpmac
gpioctl
gssd Revert "gssd: Fix handling of the gssname=<name> NFS mount option" 2023-01-11 18:23:17 -08:00
gstat ncurses: chase dependency changes in the source tree 2021-10-04 11:38:24 +02:00
hyperv
i2c i2c(8): fix option handling 2021-10-06 21:56:20 -08:00
ifmcstat
inetd pkgbase: Create a FreeBSD-inetd package 2023-02-08 08:48:43 +01:00
iostat iostat: fix rounding errors in iostat -x 2021-07-08 10:16:32 -06:00
iovctl
ip6addrctl
ipfwpcap ipfwpcap: use PF_DIVERT/SOCK_RAW instead of PF_INET/SOCK_RAW/IPPROTO_DIVERT 2022-08-30 16:24:37 -07:00
iscsid iscsi: Fetch limits based on a socket rather than assuming global limits. 2022-04-18 12:53:28 -07:00
jail jail: Correct jail_max_af_ips sysctl name 2023-02-04 11:46:46 -07:00
jexec jexec man: Explain how PATH is adjusted. 2022-05-19 16:58:32 +03:00
jls
kbdcontrol kbdcontrol: enable pre-Unicode dead key table compatibility 2023-02-14 13:49:06 +01:00
kbdmap pkgbase: Create a FreeBSD-console-tools package 2023-02-08 08:52:40 +01:00
keyserv
kldxref kldxref: handle R_RISCV_64 relocation 2022-10-20 12:01:29 -03:00
lastlogin pkgbase: Put accounting utilities in the acct package 2022-08-16 21:15:19 +02:00
lpr Indicate that xrefs to *roff,tbl,eqn et al are found in ports/textproc/groff. 2022-08-15 22:15:18 +02:00
lptcontrol
mailstats
mailwrapper pkgbase: Put sendmail example in the sendmail package 2023-02-08 08:50:31 +01:00
makefs makefs: don't needlessly require directories to exist 2023-01-12 19:16:14 +00:00
makemap
manctl
memcontrol
mergemaster mergemaster(8): Fix a typo in an error message 2022-01-26 17:59:49 +01:00
mfiutil mfiutil.8: Fix some mandoc warnings 2022-08-07 17:24:48 +02:00
mixer mixer: Fix default_unit switching with mixers that have no devices 2023-01-16 08:02:54 -05:00
mld6query
mlx5tool pkgbase: Create a mlx-tools package 2021-09-07 10:20:16 +02:00
mlxcontrol pkgbase: Move back mlxcontrol in the default package 2021-09-09 08:14:53 +02:00
mount_smbfs pkgbase: Create a FreeBSD-smbutils package 2023-02-08 08:48:28 +01:00
mountd mountd(8): Fix a typo in a source code comment 2023-01-19 14:23:51 +01:00
moused pkgbase: Create a FreeBSD-console-tools package 2023-02-08 08:52:40 +01:00
mpsutil mpsutil: Fix device speed reporting. 2022-05-09 18:03:24 -04:00
mptable
mptutil
mtest
ndp ndp(8): add structured output formatting via libxo 2022-07-08 11:39:34 +00:00
newsyslog newsyslog.conf: Minor formatting fix 2022-12-28 16:26:51 -08:00
nfscbd pkgbase: Create a FreeBSD-nfs package 2021-06-19 17:49:50 +02:00
nfsd pnfs.4: Fix a typo 2022-11-08 14:57:06 +01:00
nfsdumpstate pkgbase: Create a FreeBSD-nfs package 2021-06-19 17:49:50 +02:00
nfsrevoke pkgbase: Create a FreeBSD-nfs package 2021-06-19 17:49:50 +02:00
nfsuserd pkgbase: Create a FreeBSD-nfs package 2021-06-19 17:49:50 +02:00
ngctl
nghook
nmtree pkgbase: Create a FreeBSD-mtree package 2021-12-21 10:17:33 +01:00
nologin
nscd
ntp ntp: retire now-unused MIPS cases 2022-10-19 15:36:23 -04:00
nvram
ofwdump ofwdump.8: Remove references to eeprom(8) 2022-02-27 09:03:42 -07:00
pciconf pciconf(8): Decode ACS extended capability. 2022-11-07 13:20:22 -08:00
periodic daily 440.status-mailq: avoid error from dma with submit queue 2022-12-16 09:13:31 -06:00
pkg pkg(8): Remove a double word in a source code comment 2022-09-04 17:28:16 +02:00
pmc pmc: remove write-only variable 2022-10-19 20:59:23 +00:00
pmcannotate pmcannotate: Don't increment end address passed to objdump -d. 2022-06-14 10:52:54 -07:00
pmccontrol pmccontrol: improve -L with pmu-events 2021-05-31 17:39:05 -03:00
pmcstat pmcstat: fix log analysis 2022-07-04 12:42:39 -04:00
pmcstudy pmcstudy: Fix a typo in a usage message 2022-01-24 19:41:39 +01:00
pnfsdscopymr pkgbase: Create a FreeBSD-nfs package 2021-06-19 17:49:50 +02:00
pnfsdsfile pkgbase: Create a FreeBSD-nfs package 2021-06-19 17:49:50 +02:00
pnfsdskill pkgbase: Create a FreeBSD-nfs package 2021-06-19 17:49:50 +02:00
pnpinfo
portsnap portsnap: Remove superfluous semicolons 2021-06-29 11:00:54 -07:00
powerd powerd(8): Add rc.conf(5) to see also 2021-11-06 22:43:30 -04:00
ppp ppp: improve MSS clamping 2022-12-08 09:48:29 +01:00
pppctl
praliases
praudit
prometheus_sysctl_exporter prometheus_sysctl_exporter: ignore ENOENT for mibs specified on the CLI 2022-07-24 09:19:46 -06:00
pstat swapinfo.8: Mention BLOCKSIZE in the ENVIRONMENT section 2022-07-08 21:35:33 +02:00
pw pw: Don't return a pointer to an on-stack buffer from grp_set_passwd. 2022-12-04 16:28:22 -08:00
pwd_mkdb pwd_mkdb(8): Don't copy comments from /etc/master.passwd to /etc/passwd. 2023-01-04 22:18:09 -08:00
pwm usr.sbin/pwm/pwm add support for flags 2021-03-11 09:57:56 +01:00
quot Add a flags parameter to the ffs_sbget() function that reads UFS superblocks. 2022-07-30 22:51:38 -07:00
quotaon
rarpd
repquota
rip6query
rmt
route6d
rpc.lockd nfs: Fix a common typo in source code comments 2023-01-19 14:26:06 +01:00
rpc.statd nfs: Fix a common typo in source code comments 2023-01-19 14:26:06 +01:00
rpc.tlsclntd rpc.tlsclntd: Check for a tls syscall failure. 2022-12-21 15:12:06 -08:00
rpc.tlsservd rpc.tlsservd: Check for a tls syscall failure. 2022-12-22 09:10:27 -08:00
rpc.umntall pkgbase: Create a FreeBSD-nfs package 2021-06-19 17:49:50 +02:00
rpc.yppasswdd pkgbase: Put yellow pages programs to its own package 2021-12-21 10:17:22 +01:00
rpc.ypupdated pkgbase: Put yellow pages programs to its own package 2021-12-21 10:17:22 +01:00
rpc.ypxfrd pkgbase: Put yellow pages programs to its own package 2021-12-21 10:17:22 +01:00
rpcbind rpcbind: get contact addr from xprt members 2022-06-13 08:54:08 -05:00
rrenumd rrenumd: remove a set-but-not-used variable 2022-04-20 17:02:24 +02:00
rtadvctl
rtadvd
rtprio Add idle priority scheduling privilege group to MAC/priority 2021-12-10 04:54:48 +02:00
rtsold rtsold: fix memory leak in script execution 2022-02-25 09:30:29 -06:00
rwhod
sa lastcomm/sa: Remove sparc64 tests, they aren't needed. 2021-10-04 10:51:15 -06:00
sendmail
service pkgbase: Put more binaries/lib in runtime 2021-12-21 10:17:27 +01:00
services_mkdb ctlstat: add prometheus output 2022-04-20 15:18:41 -06:00
sesutil sesutil: don't malloc in a tight loop 2023-02-13 09:04:05 -07:00
setfib
setfmac
setpmac
smbmsg
snapinfo pkgbase: Put ufs related tools and lib in their own package 2022-10-26 19:46:34 +02:00
spi
spkrtest spkrtest(8): Replace dialog with bsddialog 2022-03-16 01:48:53 +01:00
spray
syslogd pkgbase: Create a FreeBSD-syslogd package 2021-12-21 10:17:40 +01:00
sysrc sysrc.8: Mention it requires chroot(8) 2022-04-03 13:54:11 +02:00
tcpdchk pkgbase: Create a FreeBSD-tcpd package 2021-12-21 10:17:31 +01:00
tcpdmatch pkgbase: Create a FreeBSD-tcpd package 2021-12-21 10:17:31 +01:00
tcpdrop tcpdrop: tweak comments 2021-12-04 15:08:01 +01:00
tcpdump
tcpsso tcp_sso: add support for TCP_MAXUNACKTIME 2022-09-29 02:02:11 +02:00
tests
traceroute
traceroute6 traceroute6: fix capabilities for the rcv socket 2022-10-04 23:40:29 +02:00
trim
tzsetup tzsetup: remove left overs from libbsddialog conversion 2022-08-26 11:54:17 +02:00
uathload
uefisign uefisign: fix SizeOfHeaders sanity check. 2021-06-03 15:22:14 -06:00
ugidfw
uhsoctl uhsoctl.1: Fix the man page date 2022-07-31 12:27:10 +02:00
unbound local-unbound-setup: Use default root certificates 2023-02-07 11:13:33 +01:00
usbconfig usbconfig.8: Sort flags according to style(9) 2022-01-29 22:10:21 +01:00
usbdump usbdump: style: Sort case statements alphabetically 2021-06-04 16:47:28 -06:00
utx pkgbase: Put accounting utilities in the acct package 2022-08-16 21:15:19 +02:00
valectl pkgbase: Create a FreeBSD-netmap package 2023-02-08 08:49:28 +01:00
vidcontrol pkgbase: Create a FreeBSD-console-tools package 2023-02-08 08:52:40 +01:00
vigr
vipw vipw.8: Add a FILES section 2022-11-12 12:56:29 +01:00
wake
watch ncurses: chase dependency changes in the source tree 2021-10-04 11:38:24 +02:00
watchdogd
wlandebug wlandebug.8: remove Xref for missing manpages 2021-03-15 10:04:13 +01:00
wpa Oops, wlan(4) is not the removed an(4). Restore that paragraph. 2022-08-16 21:08:17 +02:00
yp_mkdb pkgbase: Put yellow pages programs to its own package 2021-12-21 10:17:22 +01:00
ypbind ypbind(8): Fix a typo in the man page 2022-03-27 20:42:24 +02:00
ypldap ypldap: Fix mismatch in array bounds for ldapclient(). 2022-10-03 16:10:41 -07:00
yppoll pkgbase: Put yellow pages programs to its own package 2021-12-21 10:17:22 +01:00
yppush pkgbase: Put yellow pages programs to its own package 2021-12-21 10:17:22 +01:00
ypserv pkgbase: Put yellow pages programs to its own package 2021-12-21 10:17:22 +01:00
ypset pkgbase: Put yellow pages programs to its own package 2021-12-21 10:17:22 +01:00
zdump tzcode: Move configuration into separate header. 2023-01-11 11:39:12 +01:00
zic tzcode: Move configuration into separate header. 2023-01-11 11:39:12 +01:00
zonectl Cross-reference camcontrol(8) and zonectl(8) man pages. 2021-04-10 10:13:29 +01:00
zzz
Makefile hyperv: Build and install where supported 2023-02-01 10:21:57 -07:00
Makefile.aarch64 Fix the name of Makefile.aarch64 2022-05-19 11:30:21 +01:00
Makefile.amd64 Makefile.amd64: remove construct that serves no purpose 2023-02-08 12:19:39 -07:00
Makefile.arm Remove kgmon(8) 2021-04-04 00:50:28 +03:00
Makefile.i386 hyperv: Build and install where supported 2023-02-01 10:21:57 -07:00
Makefile.inc
Makefile.powerpc
Makefile.riscv