freebsd-dev/usr.sbin
Ed Schouten 4e7e2cad09 Remove unportable calls to basename().
The POSIX version of basename() doesn't use a 'const char *' argument;
the function may overwrite its input buffer. Instead of copying the
input string, let's just simplify this code by using our getprogname()
function that already returns the name of the application in the right
format.

Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D6094
2016-04-26 10:04:06 +00:00
..
ac
accton Create an acct package for accounting tools. 2016-01-21 17:49:10 +00:00
acpi MFH 2016-03-02 16:14:46 +00:00
adduser
amd MFH 2016-03-02 16:14:46 +00:00
ancontrol
apm Create a package for apm(8). 2016-01-21 18:41:55 +00:00
apmd MFH 2016-03-02 16:14:46 +00:00
arp
asf
audit
auditd
auditdistd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
auditreduce
authpf
autofs MFH 2016-04-04 23:55:32 +00:00
bhyve Use MIN()/MAX() macros from sys/param.h. 2016-04-22 06:25:32 +00:00
bhyvectl
bhyveload MFH 2016-04-06 01:44:21 +00:00
binmiscctl
bluetooth fix incorrect usage of hid_set_data() which causes crash 2016-03-23 22:07:13 +00:00
boot0cfg
boot98cfg
bootparamd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
bsdconfig f_substr(): Optimized recipe if running under bash 2016-02-03 04:02:50 +00:00
bsdinstall Remove unportable calls to basename(). 2016-04-26 10:04:06 +00:00
bsnmpd Fix looking for "UTC" at start of ptr by using strnmp instead of improperly 2016-04-23 08:10:04 +00:00
btxld Reuse our roundup2() macro instead of reinventing the wheel. 2016-04-18 17:30:33 +00:00
camdd
cdcontrol
chkgrp
chown MFH 2016-03-10 21:16:01 +00:00
chroot
ckdist
clear_locks
config DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
cpucontrol
crashinfo
cron crontab: ftruncate() with ftello() instead of ftell(). 2016-02-16 21:19:39 +00:00
crunch DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
ctladm Fix typo. 2016-02-29 16:50:28 +00:00
ctld Make the usage() mention the -u option added in r295212. 2016-04-12 16:07:41 +00:00
ctm Remove a link to the CTM section of the Handbook, which no longer exists. 2016-04-14 21:56:36 +00:00
daemon o -t comman line option added to the usage(). 2016-03-03 07:07:44 +00:00
dconschat
devctl - Note that devctl(8) will appear in 10.3 first. 2016-02-02 22:55:03 +00:00
devinfo Use uintmax_t (typedef'd to rman_res_t type) for rman ranges. 2016-03-18 01:28:41 +00:00
digictl
diskinfo
dumpcis
editmap DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
edquota
eeprom
etcupdate MFH 2016-04-11 15:24:59 +00:00
extattr Add ATF tests for usr.sbin/extattr 2016-04-22 17:02:47 +00:00
extattrctl
fdcontrol
fdformat Use NULL instead of 0 for pointers and memory allocation. 2016-04-15 02:14:11 +00:00
fdread Use NULL instead of 0 for pointers. 2016-04-14 12:46:46 +00:00
fdwrite
fifolog DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
flowctl
fmtree Use NULL instead of 0 for pointers. 2016-04-15 03:38:58 +00:00
freebsd-update Provide a future release as an example, instead of a historical one. 2016-02-05 21:57:50 +00:00
fstyp MFH 2016-04-16 02:32:12 +00:00
ftp-proxy
fwcontrol
getfmac
getpmac
gpioctl Fix gcc warnings about possibly uninitialized variables in gpioctl.c. 2016-03-12 15:10:30 +00:00
gssd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
gstat
hyperv
i2c
ifmcstat
inetd Use the SOCK_CLOEXEC flags in the socket(2) 'type' attribute instead of 2016-04-16 13:10:31 +00:00
iostat Fix the usr.sbin/iostat build with GCC, broken by r295768 2016-02-22 21:40:53 +00:00
iovctl Clean up repeated "All rights reserved" 2016-03-14 17:41:17 +00:00
ip6addrctl
ipfwpcap
iscsid MFH 2016-04-04 23:55:32 +00:00
jail Encapsulate SYSV IPC objects in jails. Define per-module parameters 2016-04-25 17:06:50 +00:00
jexec Define which of the username options (-u/-U) to jexec(8) is the default. 2016-04-23 22:31:58 +00:00
jls Add a package for jail(8) and related utilities. 2016-01-20 17:07:13 +00:00
kbdcontrol kbdcontrol: add -P path option to add keymap search paths 2016-03-16 04:05:02 +00:00
kbdmap
keyserv Cleanup unnecessary semicolons from utilities we all love. 2016-04-15 22:31:22 +00:00
kgmon Use NULL instead of 0 for pointers. 2016-04-14 11:41:30 +00:00
kgzip
kldxref
lastlogin
lmcconfig Cleanup unnecessary semicolons from utilities we all love. 2016-04-15 22:31:22 +00:00
lpr Remove a variable and three lines of code which I should have removed as 2016-04-25 20:58:54 +00:00
lptcontrol
mailstats DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
mailwrapper
makefs The malloc will return NULL if it can't allocate memory. 2016-04-18 05:19:45 +00:00
makemap DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
manctl
memcontrol
mergemaster
mfiutil
mixer
mld6query
mlxcontrol
mount_smbfs
mountd Cleanup unnecessary semicolons from utilities we all love. 2016-04-15 22:31:22 +00:00
moused Use macro MAX() from sys/param.h. 2016-04-22 03:55:33 +00:00
mpsutil Plug various resources leak 2016-04-20 21:32:34 +00:00
mptable
mptutil
mtest mtest: Prevent access to uninitialized value. 2016-04-01 01:35:52 +00:00
nandsim
nandtool
ndiscvt Remove the old depend (mkdep) code and make FAST_DEPEND the one true way. 2016-03-30 23:50:23 +00:00
ndp
newsyslog MFH 2016-03-10 21:16:01 +00:00
nfscbd Cleanup unnecessary semicolons from utilities we all love. 2016-04-15 22:31:22 +00:00
nfsd Cleanup unnecessary semicolons from utilities we all love. 2016-04-15 22:31:22 +00:00
nfsdumpstate
nfsrevoke
nfsuserd
ngctl
nghook
nmtree MFH 2016-03-10 21:16:01 +00:00
nologin
nscd
ntp DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
nvram
ofwdump
pc-sysinstall dd report short write as error, so don't halt on it. 2016-03-12 23:04:10 +00:00
pciconf Output information about PCI-e devices with slots. 2016-04-02 01:59:53 +00:00
periodic
pkg
pmcannotate
pmccontrol Use macro MAX() from sys/param.h. 2016-04-22 05:07:59 +00:00
pmcstat
pmcstudy Cleanup unnecessary semicolons from utilities we all love. 2016-04-15 22:31:22 +00:00
pnpinfo
portsnap Cleanup unnecessary semicolons from utilities we all love. 2016-04-15 22:31:22 +00:00
powerd
ppp Cleanup unnecessary semicolons from utilities we all love. 2016-04-15 22:31:22 +00:00
pppctl
praliases DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
praudit
procctl
pstat
pw Add a single example of adding a user that roughly corresponds with the 2016-04-23 22:57:54 +00:00
pwd_mkdb Following revision r295924, the changes to a db file should be fsynced 2016-02-23 15:28:13 +00:00
quot
quotaon
rarpd
repquota
rip6query
rmt Use NULL instead of 0 for pointers. 2016-04-14 12:25:00 +00:00
route6d
rpc.lockd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
rpc.statd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
rpc.umntall
rpc.yppasswdd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
rpc.ypupdated DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
rpc.ypxfrd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
rpcbind MFH 2016-03-10 21:16:01 +00:00
rrenumd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
rtadvctl
rtadvd
rtprio
rtsold Use the _SAFE loop variant, since the loop body may remove queue entries. 2016-02-18 01:58:26 +00:00
rwhod Create a rcmds package. 2016-01-21 17:33:31 +00:00
sa MFH 2016-03-10 21:16:01 +00:00
sendmail MFH 2016-03-02 16:14:46 +00:00
service
services_mkdb Remove O_SYNC from the options passed to dbmopen(). 2016-02-10 09:40:45 +00:00
sesutil Plug memory leak 2016-04-20 21:37:32 +00:00
setfib
setfmac
setpmac
sicontrol
smbmsg
snapinfo
spkrtest
spray
syslogd syslogd: Enable repeated line compression for lines of any length. 2016-01-27 16:17:15 +00:00
sysrc jls(1) -> jls(8) 2016-02-29 17:30:34 +00:00
tcpdchk
tcpdmatch
tcpdrop
tcpdump Update dependencies. 2016-02-26 22:14:15 +00:00
tests MFH 2016-03-10 21:16:01 +00:00
timed
traceroute DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
traceroute6
trpt
tzsetup Use NULL instead of 0 for pointers. 2016-04-15 04:10:47 +00:00
uathload Implement suggestion by jhb@ to have _PATH_FIRMWARE instead of hard 2016-03-23 04:18:57 +00:00
uefisign
ugidfw
uhsoctl
unbound MFH 2016-03-14 18:54:29 +00:00
usbconfig
usbdump Reuse our roundup2() macro instead of reinventing the wheel. 2016-04-18 17:30:33 +00:00
utx
vidcontrol
vigr
vipw
wake
watch
watchdogd Fix typo. 2016-02-29 17:40:37 +00:00
wlandebug
wlconfig
wpa
yp_mkdb
ypbind
ypldap Use nitems instead of 'sizeof(mapnames) / sizeof(mapnames[0]'. 2016-04-18 03:44:42 +00:00
yppoll
yppush DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
ypserv DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
ypset
zic
zzz
Makefile Just install ar5523.bin into /usr/share/firmware and stop compiling it 2016-03-15 04:42:37 +00:00
Makefile.amd64
Makefile.arm
Makefile.arm64
Makefile.i386
Makefile.inc
Makefile.mips
Makefile.powerpc
Makefile.sparc64