freebsd-skq/usr.bin
Dag-Erling Smørgrav 574a97f5ce Check that user really typed "who am {I,i}", and that no stray
arguments are given.
Note that usage() and the manpage disagree...

PR:		bin/6294
Suggested by:	Ruslan Ermilov and Bruce Evans
Submitted by:	Ruslan Ermilov (partly)
1998-04-26 19:10:51 +00:00
..
apply .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
ar localtime() needs a pointer to time_t which is not necessarily a long. 1998-02-20 05:01:05 +00:00
at .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
banner .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
basename PR: 4866 1998-04-14 22:08:48 +00:00
biff -Wall cleanup. 1997-12-29 00:09:06 +00:00
brandelf Add a forgotten 'static'. 1998-04-21 02:44:12 +00:00
c89 Added -D_ANSI_SOURCE as discussed with bde, 1997-10-05 18:44:37 +00:00
calendar Update to reflect the current Jewish calendar. 1998-02-08 22:57:59 +00:00
cap_mkdb Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail, 1997-07-06 06:54:14 +00:00
chat merge ppp-2.3.3 changes onto mainline 1998-03-21 20:47:53 +00:00
checknr Add prototypes to functions. Make -Wall happy. 1997-06-24 06:54:43 +00:00
chflags Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail, 1997-07-06 06:54:14 +00:00
chkey Fixed missing DPADD. 1997-12-16 14:42:08 +00:00
chpass Fixed `make -j9' by putting generated headers in ${SRCS}. Removed bogus 1998-04-26 16:31:14 +00:00
cksum cksum does a 32-bit checksum, so it needs to use u_int32_t variables, 1998-03-10 05:03:49 +00:00
cmp Permit hex/octal parameters to cmp, to match what the manual page says. 1997-08-19 14:34:04 +00:00
col compare return value from getopt against -1 rather than EOF, per the final 1997-03-29 04:34:07 +00:00
colcrt -Wall cleanup. 1997-12-29 00:09:06 +00:00
colldef Add Slovene link 1997-11-07 15:40:55 +00:00
colrm -Wall cleanup. 1997-12-29 00:09:06 +00:00
column Fix example to match ls(1)'s output. 1997-08-20 02:05:29 +00:00
comm Teach comm(1) and uniq(1) about an option for case-insensitive work. 1997-09-07 15:09:22 +00:00
compile_et Don't use beforedepend to break things. The usual fix of putting 1998-03-20 16:21:39 +00:00
compress Uncompress is under .Nm not .Ar. 1997-06-30 06:44:07 +00:00
cpp Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
ctags Ctags write to buffer beyond the end of it when the source file 1998-04-19 18:00:49 +00:00
cut Use err(3) instead of local redefinition. Change argument name in man 1997-06-30 06:48:46 +00:00
dig Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
dirname compare return value from getopt against -1 rather than EOF, per the final 1997-03-29 04:34:07 +00:00
dnsquery Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
doscmd .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
du * add a -c option which displays the grand total of all files 1997-12-29 20:56:21 +00:00
ee Convert to mdoc format. Header -> Id. 1998-02-02 07:09:36 +00:00
env Add usage(). 1997-06-30 06:51:20 +00:00
error .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
expand PR: bin/5529 1998-02-02 07:10:59 +00:00
f2c Fixed `make -jN' for large N. Just put all generated headers in SRCS. 1998-03-06 13:51:18 +00:00
false
fetch .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
file .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
file2c Nm does not always need an argument. 1997-07-02 06:30:51 +00:00
find Removed definition of _NEW_VFSCONF. The new vfsconf interface is now 1998-01-20 10:40:18 +00:00
finger Document the bogus standard requirement of delaying the close. 1997-08-01 20:26:47 +00:00
fmt Ooops, the Makefile was not supposed to be changed. Unspam this. 1997-09-30 19:42:55 +00:00
fold Add usage(), use err(3). 1997-07-08 10:59:50 +00:00
fpr
from Add usage(), use err(3). 1997-07-08 10:59:50 +00:00
fsplit .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
fstat Use -literal to make for a more pleasing list. 1998-01-25 16:38:42 +00:00
ftp Fix a few minor typos and style nits. 1998-03-01 18:58:03 +00:00
gcore Add missing argument detected by "-Wformat". Make messages more 1997-11-18 03:50:25 +00:00
gencat Install gencat.1 manpage. 1997-09-14 20:23:02 +00:00
getopt compare return value from getopt against -1 rather than EOF, per the final 1997-03-29 04:34:07 +00:00
global Don't create an unused obj directory. 1998-02-20 11:18:57 +00:00
gprof Revert to original style. 1997-07-15 08:04:40 +00:00
gprof4 Implemented non-statistical kernel profiling. This is based on 1995-12-29 15:30:05 +00:00
head Setting eval to 1 after calling warn was the original behaviour. 1997-07-11 06:13:18 +00:00
hexdump Localize it 1997-11-04 05:33:15 +00:00
host Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
id Use .Nm id' instead of .Nm' for the synopsis lines. 1998-02-28 21:37:54 +00:00
indent Change defaults to match reality. 1997-10-24 04:13:41 +00:00
ipcrm Add rcsid. Cosmetic in usage string. Typo in man page. 1997-07-15 09:54:34 +00:00
ipcs .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
join Require all compatability options to begin with '-'. 1997-08-19 15:58:15 +00:00
jot Random data is no longer based on the time of day, rather the random 1998-01-24 03:32:33 +00:00
kdump Use err(3). Correct incomplete man page. 1997-07-16 06:49:49 +00:00
key .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
keyinfo .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
keyinit .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
keylogin Fixed DPADD. 1997-12-16 17:37:23 +00:00
keylogout Add rcsid, remove unused #includes, change exit(-1). 1998-01-14 07:14:11 +00:00
killall .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
ktrace Delete truss manpage link. We have now a real truss command. 1997-12-06 23:40:13 +00:00
kzip .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
lam Use err(3) instead of local redefintion. Add usage() as a separate 1997-07-18 06:43:15 +00:00
last compare return value from getopt against -1 rather than EOF, per the final 1997-03-29 04:34:07 +00:00
lastcomm Cosmetic in usage string. 1997-07-21 12:01:47 +00:00
ldd Use consistent spelling, 1997-12-25 09:36:42 +00:00
leave Don't let secs variable wrap if <= 2. 1998-04-14 00:23:54 +00:00
lex Changes to support full make parallelism (-j<n>) in the world 1997-10-05 09:40:24 +00:00
limits ulimit does not have its own manpage as it is a shell builtin. 1998-02-01 06:19:56 +00:00
locate Change default temporary directory (TMPDIR) from /tmp to /var/tmp. 1998-03-08 16:09:31 +00:00
lock Use err(3). Add usage(). 1997-07-21 12:09:34 +00:00
lockf .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
logger Use err(3). 1997-07-22 07:33:48 +00:00
login .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
logname Show the real revision date and not the date that this 1997-06-23 04:03:49 +00:00
look revert: The warning was supposed to irritate someone into fixing this. 1997-09-15 11:02:10 +00:00
lorder Typo. 1997-07-23 06:48:01 +00:00
lsvfs Started getting rid of the compatibility cruft for the Lite1 mount() 1998-01-17 16:24:27 +00:00
m4 .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
mail Document the use of sendmail options on the commandline. 1998-04-14 00:59:29 +00:00
make When all transformation rules to or from a suffix disappeared, make tries 1998-04-26 09:44:48 +00:00
makewhatis Fix a minor nit in the .Dd macro invocation so that 1997-06-23 04:52:13 +00:00
mesg Add usage(). 1997-07-24 07:00:17 +00:00
minigzip Add SEE ALSO section including ref to gzip. Add .An. 1998-01-05 07:14:54 +00:00
mk_cmds Add usage(). 1997-07-24 07:00:17 +00:00
mkdep .Nm mkdep -> .Nm. 1997-07-24 07:01:18 +00:00
mkfifo Add includes and prototype. 1997-07-24 07:02:55 +00:00
mklocale Add #include <string.h> to get prototypes. 1998-02-20 04:48:37 +00:00
mkstr Add #include <string.h> to get prototypes. 1998-02-20 04:48:37 +00:00
mktemp Bring in an old faithful tool I've been using for just over 4 years now 1998-04-14 07:39:57 +00:00
modstat .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
more .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
msgs Use err(3). 1997-07-29 06:47:18 +00:00
mt mt should report the compression status. 1998-04-19 17:28:14 +00:00
ncal fix ncal.1 grammar 1998-04-26 06:21:29 +00:00
netstat Output mbuf clusters as current/peak/max. Requires new kern.ipc.nmbclusters 1998-04-24 04:30:27 +00:00
newkey Replace incomplete malloc prototype with #include <stdlib.h> 1998-02-20 04:38:20 +00:00
nfsstat Merged from Lite2. This was mostly already done, mostly indirectly 1998-01-20 12:27:38 +00:00
nice .Nm nice -> .Nm. 1998-03-23 07:45:40 +00:00
nm Use err(3). Add missing flags in usage string. 1997-07-31 06:53:36 +00:00
nohup Use err(3). 1997-07-31 06:54:45 +00:00
objformat Import intial version of an a.out/elf tool wrapper/selector. It is 1998-03-10 05:20:58 +00:00
opieinfo Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
opiekey Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
opiepasswd Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
pagesize Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
passwd Ifdefed conditionally-unused variables. 1998-03-23 14:14:24 +00:00
paste Add #include <stdlib.h> to get prototype for malloc(). Without this, 1998-02-20 04:21:46 +00:00
pr Cosmetic and typos. 1997-08-04 06:39:19 +00:00
printenv environmental -> environment. 1997-08-04 06:40:41 +00:00
printf Back out revision 1.10. It broke the build of sh, which compiles 1997-11-18 15:23:23 +00:00
quota Converted to Lite2 mount interface - decide filesystem types by name 1998-01-20 12:53:43 +00:00
ranlib Use err(3). Use #include "" instead of <> for local headers. 1997-08-04 06:48:25 +00:00
rdist Correctly operate on hardlink when source and destination are not on the same 1998-04-20 06:20:24 +00:00
renice Use err(3). Add usage() and prototypes. 1997-08-05 06:42:48 +00:00
rev Document that multiple args are allowed, i.e Ar file -> Ar file ... 1997-08-05 06:44:28 +00:00
rlogin Rats. I was too fast here. Re-enable SUID mode for the non-Kerberos 1998-03-26 19:43:06 +00:00
rpcgen Fix a #ifndef that became a #ifdef and changed the default 1998-03-07 05:43:59 +00:00
rpcinfo Use err(3), cosmetic in usage(). 1997-08-06 06:49:06 +00:00
rs Add #include <string.h> to get prototypes. 1998-02-20 04:48:37 +00:00
rsh Add const to rcsid. 1998-03-23 07:46:23 +00:00
rup PR: bin/6193 1998-04-01 21:34:10 +00:00
ruptime Small formatting change to interval() to align columns so that: 1997-03-31 09:36:59 +00:00
rusers Proper casting for clnt_broadcast() args. 1997-09-15 09:47:16 +00:00
rwall Use err(3). Add usage(). 1997-08-08 12:18:16 +00:00
rwho Use err(3). Add usage() and prototypes. Add Xr to who(1). 1997-08-08 12:20:24 +00:00
sasc .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
script Rewrite script as a select loop rather than as a twin reader/write process. 1998-03-08 14:19:18 +00:00
sed Remove local redefinition for err(). Add usage(). 1997-08-11 07:21:08 +00:00
shar more sanity check before making output. 1997-08-29 00:44:34 +00:00
showmount Added an replacement for callrpc that uses tcp as primary transport method. 1997-09-04 21:21:56 +00:00
size Use err(3) instead of local redefinition. 1997-08-11 07:28:19 +00:00
soelim Use err(3). Add prototype. 1997-08-11 07:29:17 +00:00
split Cosmetic in err() string. 1997-08-11 07:30:22 +00:00
strings Use err(3). 1997-08-11 07:31:28 +00:00
strip Use err(3) instead of local redefinition. 1997-08-12 06:44:57 +00:00
su I wonder how I managed to get the krb.h include wrong. Anyway: correct it. 1997-10-28 21:20:21 +00:00
symorder Use err(3) instead of local redefinition. Add prototypes. 1997-08-12 06:46:56 +00:00
systat Use 'proto <tcp|udp|all>' to select the protocol to display 1997-12-04 03:44:46 +00:00
tail Add a new -F flag which is a superset of -f. It will cause tail to 1998-04-06 16:13:49 +00:00
talk Add #include <string.h> to get prototype for memcpy(). 1998-02-15 04:15:47 +00:00
tclsh use -I${DESTDIR}/usr/include/tcl, not -I/usr/include/tcl 1997-08-18 11:39:19 +00:00
tconv change `ingored'' to `ignored'' in two places. I noticed this typo 1997-12-08 21:36:25 +00:00
tcopy Use err(3). Correct usage string. Change default tape to /dev/rst0. 1997-08-14 06:41:00 +00:00
tee Use err(3) instead of local redefinition. Add usage(). 1997-08-14 06:42:43 +00:00
telnet Remove unneeded crud. 1998-03-26 17:55:27 +00:00
tftp Add #include <string.h> to get prototypes. 1998-02-20 04:33:03 +00:00
time Add usage() and use err(3). 1997-08-14 06:48:59 +00:00
tip Remove special global tags support; we don't do it that way anymore. 1998-03-26 16:12:14 +00:00
tn3270 Add usage. Use /usr/share/misc/map3270 instead of /etc/map3270. 1997-08-18 07:21:48 +00:00
top Fix top sorting of idle processes. top used p_cpticks as a tie-breaker 1998-02-14 13:34:59 +00:00
touch Cosmetic. 1997-08-18 07:22:53 +00:00
tput Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail, 1997-07-06 06:54:14 +00:00
tr Submitted by: Joachim Kuebart, thanks. 1997-10-12 09:52:49 +00:00
true Nm true -> Nm. 1997-08-18 07:25:50 +00:00
truss Add a sysmk -> /dev/null definition ready for a coming change to 1998-01-25 09:09:48 +00:00
tset Many places in the code NULL is used in integer context, where 1997-09-18 14:08:40 +00:00
tsort Nm tsort -> Nm. 1997-08-18 07:28:50 +00:00
tty Add usage(). 1997-08-18 07:30:15 +00:00
ul Main() returns int. 1997-08-26 11:08:24 +00:00
uname Add a -p option which is the same as the -m option but provided 1998-02-24 16:57:49 +00:00
unexpand Add #include <string.h> to get prototypes. 1998-02-20 04:33:03 +00:00
unifdef Main() returns int. 1997-08-26 11:08:24 +00:00
uniq Localize it 1998-03-08 20:56:43 +00:00
units .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
unvis Main() returns int. 1997-08-26 11:08:24 +00:00
users Main() returns int. 1997-08-26 11:08:24 +00:00
uudecode Add two new options: 1998-01-25 19:26:05 +00:00
uuencode Add two new options: 1998-01-25 19:26:05 +00:00
vacation Add const to copyright string. Hide sccsid string. 1997-11-03 07:51:05 +00:00
vgrind Many places in the code NULL is used in integer context, where 1997-09-18 14:08:40 +00:00
vi Polish message catalogs for vi. 1997-09-22 23:14:37 +00:00
vis Use err(3). Add usage() and prototypes. 1997-08-25 06:37:37 +00:00
vmstat Support a couple of new "-s" stats. 1998-03-07 23:40:23 +00:00
w Like most Unices FreeBSD should have a larger tty field at least 1998-04-19 18:32:01 +00:00
wall Add rcsid. Sort #includes. 1998-03-23 07:47:31 +00:00
wc Sync usage string according to man page. Silent -Wall. 1997-08-25 06:44:59 +00:00
what add strings(1) to what(1) "SEE ALSO" 1998-04-14 06:31:23 +00:00
whereis Fix sysctl path /usr/sbin->/sbin 1997-12-22 19:11:28 +00:00
which .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
who Check that user really typed "who am {I,i}", and that no stray 1998-04-26 19:10:51 +00:00
whois Make it more convenient to query NICs other than InterNIC. Explain in the 1998-02-19 19:07:50 +00:00
window Define '\t' as a printable character, so it can be displayed on the 1998-04-20 13:37:29 +00:00
write Allow backspace too 1997-09-15 00:42:04 +00:00
xargs Submitted by: Peter Hawkins <peter@clari.net.au> 1997-12-13 06:34:47 +00:00
xinstall Converted to Lite2 mount interface - don't use numeric filesystem 1998-01-20 13:52:32 +00:00
xlint .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
xstr Use err(3). Add usage and prototypes. Use getopt(). Document -v flag. 1997-08-28 06:28:08 +00:00
yacc Add #include <string.h> to get prototypes. 1998-02-20 04:33:03 +00:00
yes
ypcat .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
ypmatch .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
ypwhich .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
Makefile Add mktemp directory 1998-04-14 07:40:47 +00:00
Makefile.inc