NetBSD/usr.bin
manu d37a5aac85 Rewrite PAMification of su.
- don't try to fallback to plain old authentication. It could lead to unix
  authentication to be used while the administrator wanted to forbid it.
  Moreover, a broken PAM setup can be fixed by just rebooting in single user.
- In order to make the code more readable, make two main(), with and aithout
  PAM.
- Outstanding issues that seem impossible to fix:
  The -K flag die with PAM.
  -c cause PAM credentials to be ignored.
2005-01-09 21:32:38 +00:00
..
apply Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
apropos Add (unsigned char) cast to ctype functions 2004-10-30 15:51:20 +00:00
asa
at Add (unsigned char) cast to ctype functions 2004-10-30 16:55:06 +00:00
audio Add (unsigned char) cast to ctype functions 2004-10-30 16:57:27 +00:00
awk Add article. 2004-06-06 04:04:36 +00:00
banner Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
basename Add Xrefs to basename(3), dirname(3). 2003-09-06 20:56:40 +00:00
bdes Use strtoul() for integer conversion 2004-10-30 17:02:20 +00:00
biff Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
bzip2 Add hook for SMALL 2004-06-06 06:39:43 +00:00
bzip2recover
cal Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
calendar New sentence, new line. Bump date for **. 2004-12-08 15:44:21 +00:00
cap_mkdb Drop extra space before a dot. 2004-09-26 21:19:47 +00:00
cdplay Add (unsigned char) cast to ctype functions 2004-10-30 17:08:12 +00:00
checknr Standardize usage: print it to stderr, add brackets around all optional 2004-07-09 11:41:26 +00:00
chflags Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
chpass Add (unsigned char) cast to ctype functions 2004-10-30 17:08:12 +00:00
cksum -p, -s, -t, and -x are mutually exclusive -- make it obvious in 2004-07-09 11:47:59 +00:00
cmp Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
col safer use of realloc 2003-10-16 06:45:22 +00:00
colcrt Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
colrm Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
column safer use of realloc 2003-10-16 06:45:22 +00:00
comm Add -f to usage. From Kouichirou Hiratsuka in PR 26196. 2004-07-09 11:50:21 +00:00
compile_et Don't include ${DESTDIR}/usr/include/krb5 if HOSTPROG. It's not needed and 2004-06-22 02:44:11 +00:00
compress Sync usage with man page. From Kouichirou Hiratsuka in PR 26197. 2004-07-09 12:14:37 +00:00
crontab
crunch Add (unsigned char) cast to ctype functions 2004-10-30 17:17:35 +00:00
ctags Completely rework how tools/compat is done. Purge all uses/references to 2004-06-20 22:20:14 +00:00
cut Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
db When vis encoding with -S, only remove the trailing NUL if -N isn't used and 2004-10-04 10:56:12 +00:00
dirname Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
du Use open address hashtable with multiplicative double hash probing 2004-06-13 11:30:10 +00:00
eject Add (unsigned char) cast to ctype functions 2004-10-30 17:17:35 +00:00
elf2aout s/the the/to the/. 2004-04-23 02:55:11 +00:00
elf2ecoff Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
env Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
error Spell the plural of suffix "suffixes", not "suffices". 2004-02-13 17:56:17 +00:00
expand Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
extattr Add RCS Id, bump date for when it appeared in NetBSD, mention 2005-01-02 18:41:23 +00:00
false Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
fdformat PR/15897: Ryo HAYASAKA: fdformat does not know about terminal width. 2004-04-23 15:04:27 +00:00
fgen Add -d level to usage. From Kouichirou Hiratsuka in PR 26198. 2004-07-09 12:10:43 +00:00
file Force LANG=C before doing the shell glob to avoid collation issues on hosts 2004-06-16 01:33:35 +00:00
find Attack of the whiteout police, including the "fix whitespace problems" 2004-12-28 05:11:07 +00:00
finger Print the full pty name; reported by atatat 2004-11-16 04:52:46 +00:00
fmt Add (unsigned char) cast to ctype functions 2004-10-30 17:17:35 +00:00
fold safer use of realloc 2003-10-16 06:45:22 +00:00
fpr safer use of realloc 2003-10-16 06:45:22 +00:00
from isupper(x) can be true for x in [128..255], but since tolower(x) is required 2004-10-30 17:25:34 +00:00
fsplit No need to call isupper() before tolower() 2004-10-30 17:27:28 +00:00
fstat Slurp in the struct mount at vp->v_mount and the struct specinfo at 2004-12-14 03:10:23 +00:00
ftp fix copyright year 2005-01-04 23:59:11 +00:00
gcore Allow -c argument now. 2005-01-09 17:47:45 +00:00
gencat Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
getconf pathconf(2), not (3). 2004-11-10 13:43:39 +00:00
getent add some HISTORY about the inspiration for this command 2004-12-03 23:05:32 +00:00
getopt
gprof Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
grep Add (unsigned char) cast to ctype functions 2004-10-30 17:37:09 +00:00
gzip Fixed for PR#28581. If stdin is the input stream, fstat it and check if it's 2004-12-08 06:38:40 +00:00
head Mention -c explicitly, use Nm, drop trailing space, 2004-05-04 23:44:21 +00:00
hesinfo Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
hexdump Add (unsigned char) cast to ctype functions 2004-10-30 17:43:02 +00:00
iconv scmp: don't discard const qualifiers needlessly. 2004-12-21 11:33:07 +00:00
id WARNS=3 clean. 2004-11-22 17:32:08 +00:00
indent Add (unsigned char) cast to ctype functions 2004-10-30 17:43:02 +00:00
innetgr Sort options and add -v to usage. From Kouichirou Hiratsuka in PR 26219, 2004-07-10 16:12:29 +00:00
ipcrm Clean up getopt() usage, removing unnecessary warnx()'s. 2003-11-02 17:43:01 +00:00
ipcs Change copyright to 2-clause BSD-copyright. 2004-09-15 19:45:17 +00:00
join Add missing -j to usage; sort as in man page; 2004-07-13 11:53:57 +00:00
jot Sort options, standardize usage message. 2004-11-22 17:34:24 +00:00
kdestroy split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se 2003-07-23 08:01:24 +00:00
kdump Ensure a non-zero 'word_size' is passed to hexdump_buf for unknown 2004-08-23 20:49:28 +00:00
kgetcred Add kgetcred, a tool that fetches a credential from the KDC 2004-05-25 10:31:45 +00:00
kinit rearrange lib stuff so that these link on non-shared-lib platforms. 2003-12-13 22:07:35 +00:00
klist split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se 2003-07-23 08:01:24 +00:00
ktrace - If fktrace(2) failed, just exit rather than waiting for trace output. 2004-07-16 23:52:01 +00:00
ktruss Add prefix "${PROG}-" to filename of automatically created list of 2004-07-10 12:12:49 +00:00
lam Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
last use sockaddr_snprintf() 2004-11-19 21:41:25 +00:00
lastcomm Add (unsigned char) cast to ctype functions 2004-10-30 19:34:01 +00:00
ldd Fix default format so that not to print NULL (e.g., ldd mozilla-bin). 2004-09-07 02:54:40 +00:00
leave Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
less Add (unsigned char) cast to ctype functions 2004-10-30 20:17:19 +00:00
lex Add (unsigned char) cast to ctype functions - Char is unsigned char. 2004-10-30 20:37:35 +00:00
locale consistently quote all values printed in the summary of 2004-07-12 08:51:56 +00:00
locate Rework "ignorefs" behaviour: 2004-04-19 01:05:22 +00:00
lock Usage -> usage; add missing -n to usage. From Kouichirou Hiratsuka in PR 26221. 2004-07-13 11:55:02 +00:00
logger Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
login Only include Kerberos 4 headers when compiling in a Kerberos enviroment 2004-12-22 01:28:56 +00:00
logname Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
look Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
lorder Invoke "join" using POSIX syntax. Should fix a problem cross-building from 2005-01-04 18:09:33 +00:00
m4 Add (unsigned char) cast to ctype functions 2004-10-30 20:39:35 +00:00
machine Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
mail Add (unsigned char) cast to ctype functions 2004-10-30 20:39:35 +00:00
make Add comments in the pmake style, and factor out a local variable. 2004-12-29 01:55:25 +00:00
man Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
menuc In procese_menu, make sure we initializie the menus 2004-09-17 18:27:28 +00:00
mesg Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
midiplay Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
mixerctl Mention mixerctl.conf in FILES and SEE ALSO. While here, tidy up some 2004-01-23 21:12:07 +00:00
mk_cmds
mkcsmapper KNF, from kevlo@openbsd 2004-01-05 19:20:10 +00:00
mkdep Sync usage with man page. From Kouichirou Hiratsuka in PR 26224. 2004-07-13 12:00:30 +00:00
mkesdb use snprintf, dude 2004-01-02 12:09:48 +00:00
mkfifo mkfifo is creating fifos, not directories. Noted by Andrew Doran. 2004-10-08 22:32:35 +00:00
mklocale Some fixes from jmc@openbsd. 2004-01-24 17:03:26 +00:00
mkstr Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
mktemp Bump date for previous. 2004-04-02 11:47:55 +00:00
modstat Update a comment to say that the returned size is in KB. 2004-10-22 09:50:54 +00:00
msgc Add (unsigned char) cast to ctype functions 2004-11-05 20:45:48 +00:00
msgs Fix obvious grammar mistake. Most of this file could do with a rewrite. 2004-09-03 14:24:50 +00:00
netgroup Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
netstat NI_WITHSCOPEID was not picked up by IETF standardization process 2004-11-16 06:04:12 +00:00
newsyslog Add (unsigned char) cast to ctype functions 2004-10-30 20:56:20 +00:00
nfsstat in "summary" output (-w), 2004-08-26 13:29:05 +00:00
nice Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
nl
nohup Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
openssl NO_* have been changed to OPENSSL_NO_* in more recent OpenSSL releases, 2003-08-27 20:18:41 +00:00
pagesize Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
passwd Add (unsigned char) cast to ctype functions 2004-10-30 21:05:53 +00:00
paste Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
patch Fix an array overrun in option parsing. 2004-12-09 18:06:10 +00:00
pathchk
pkill Make usage() not overflow 80 char lines. 2004-02-15 17:03:30 +00:00
pmap sync with kernel. (vm_map_entry::flags) 2005-01-01 21:17:47 +00:00
pmc Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
pr Move Keith Muller's code from a 4-clause to a 3-clause licence by removing 2003-10-13 07:41:22 +00:00
printenv Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
printf WARNS=3, and remove comment about WFORMAT issues. 2004-10-30 19:28:35 +00:00
progress Support strsuftoll(3) suffixes for '-l length'. 2004-04-03 06:19:22 +00:00
pwhash Merge single-letter options; sync order in man page and usage. 2004-11-17 14:57:48 +00:00
qsubst Make fn arg 'unsigned char' to avoid passing 'char' to isalnum() 2004-11-01 21:36:11 +00:00
quota Replaced strncpy with strlcpy. Thanks to Peter Postma who 2004-09-07 13:20:39 +00:00
radioctl Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
rdist Patch from Olaf Siebert in PR 12688 to handle hard links correctly when 2004-08-06 15:50:02 +00:00
renice Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
rev Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
rlogin getuid() returns a uid_t not int, so make uid uid_t. 2005-01-08 03:23:15 +00:00
rpcgen Add (unsigned char) cast to ctype functions 2004-11-01 21:39:32 +00:00
rpcinfo Add (unsigned char) cast to ctype functions 2004-11-01 21:39:32 +00:00
rs Add (unsigned char) cast to ctype functions 2004-11-01 21:39:32 +00:00
rsh remove unused variable 2004-10-16 07:36:08 +00:00
rup Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
ruptime Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
rusers Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
rwall Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
rwho Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
script Add -d to usage; use getprogname(3). From Kouichirou Hiratsuka in PR 26227. 2004-07-13 12:07:51 +00:00
sed no trailing comma at end of enum. 2004-11-20 06:40:01 +00:00
shar Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
shlock * add [] to -p 2004-07-13 12:16:12 +00:00
showmount Patch from PR 15181 to try using TCP first, fixing problems with long 2004-08-06 16:10:54 +00:00
shuffle Mike Cheponis noted that I didn't list the edition of Knuth that the 2004-12-01 00:03:45 +00:00
skey Add (unsigned char) cast to ctype functions 2004-11-01 21:52:07 +00:00
skeyinfo use bounded string op 2003-07-23 04:11:12 +00:00
skeyinit Document -x, from Jeff Ito in PR 28494. 2004-12-01 12:01:05 +00:00
soelim Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
sort Add (unsigned char) cast to ctype functions 2004-11-03 20:10:08 +00:00
split Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
ssh Style/consistency cleanup: 2005-01-03 06:05:50 +00:00
stat correct examples. 2005-01-08 03:46:05 +00:00
string2key
su Rewrite PAMification of su. 2005-01-09 21:32:38 +00:00
systat - remove left over debugging code. 2005-01-09 01:27:47 +00:00
tail do not use long for file offset, use off_t. otto@openbsd 2004-02-16 21:57:04 +00:00
talk PR/24862: Peter Postma: From Andrey Matveev via OpenBSD: 2004-03-20 17:07:33 +00:00
tcopy Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
tee Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
telnet Move linking with libdes to the common kerberos section since 2004-12-22 01:25:05 +00:00
tftp Move declaration of local variables to start of function instead of 2004-10-10 22:15:34 +00:00
time Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
tip Add (unsigned char) cast to ctype functions 2004-11-04 07:29:09 +00:00
tn3270 Fix a typo, dependancy -> dependency 2004-11-19 14:18:53 +00:00
top Add (unsigned char) cast to ctype functions 2004-11-04 07:35:15 +00:00
touch Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
tput Sync usage with man page; use getprogname(). 2004-07-23 13:33:22 +00:00
tr As in other man pages, use .Dq for strings, and .Sq for single characters. 2004-03-24 11:38:27 +00:00
true Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
tset pass data to a function via arguments instead of via global variables. 2004-09-01 01:46:28 +00:00
tsort Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
tty Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
ul Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
uname Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
unexpand Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
unifdef Sort sections and other fixes. 2003-11-11 13:48:50 +00:00
uniq Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
units Add (unsigned char) cast to ctype functions 2004-11-04 07:38:43 +00:00
unvis Add -h to decode RFC 1808 URI style encoding (VIS_HTTPSTYLE). 2004-04-22 06:55:15 +00:00
usbhidaction Add (unsigned char) cast to ctype functions 2004-11-05 21:56:01 +00:00
usbhidctl Add (unsigned char) cast to ctype functions 2004-11-05 21:56:01 +00:00
users Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
uudecode Add (unsigned char) cast to ctype functions 2004-11-04 07:38:43 +00:00
uuencode Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
uuidgen Sync usage with man page. 2004-09-13 23:44:19 +00:00
vacation New sentence, new line; punctuation fixes; 2004-08-25 12:47:57 +00:00
vgrind Add (unsigned char) cast to ctype functions 2004-11-04 07:38:43 +00:00
vi bump version: coredump fixed when autocompleting a filename wider than screen 2004-11-23 14:36:50 +00:00
vis Sync usage with man page; use getprogname(). From Kouichirou Hiratsuka 2004-07-23 13:44:17 +00:00
vmstat Correct typo in an error message: allocatior -> allocator 2004-12-20 08:20:50 +00:00
w Make -w flag apply to the WHAT field also (command and args). 2005-01-08 05:08:53 +00:00
wall Call check_sender with NULL atime, meaning no strict checking. 2004-10-27 17:49:19 +00:00
wc Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
what Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
whatis Use isalnum((unsigned char)x) instead of testing both isdigit() and isalpha() 2004-11-05 19:54:47 +00:00
whereis PR/25680: Christian Biere: whereis/which return invalid information with 2004-05-23 02:24:06 +00:00
who Sort options. 2004-11-22 17:20:02 +00:00
whois Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
window . wait only for 10 ms instead of 100 ms before updating the screen 2004-12-10 16:27:29 +00:00
write PR/28474: Geoff C. Wing: write does some weird checking and can't handle ptyfs 2004-11-30 04:08:38 +00:00
xargs Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
xinstall Completely rework how tools/compat is done. Purge all uses/references to 2004-06-20 22:20:14 +00:00
xlint Shift assignment operators were handled incorrectly. On 64 bit machines, 2005-01-02 17:59:47 +00:00
xstr Some improvements from jmc@openbsd. 2004-07-26 16:05:33 +00:00
yacc Completely rework how tools/compat is done. Purge all uses/references to 2004-06-20 22:20:14 +00:00
yes Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
ypcat Modify the licences of code written by Theo De Raadt from a 4-clause 2003-12-10 12:06:25 +00:00
ypmatch Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
ypwhich strlcpy 2003-07-12 13:57:49 +00:00
Makefile Add a getextattr(1)/setextattr(1)/rmextattr(1)/lsextattr(1) utility 2005-01-02 17:55:48 +00:00
Makefile.inc