NetBSD/usr.bin
lukem aaa55367ba As per discussion with mrg, back out parts of previous change.
The appropriate entry in /etc/group as returned by getgrnam() is
used to determine if 'su root' may be permitted, rather than
checking if membership exists in the result of getgroups().

The following changes were made regarding the behaviour of the special
group for 'su root'
* allow for definition of SUGROUP (defaults to "wheel") to override group name.
* use getgrnam(SUGROUP) instead of getgrgid(0).
* only scan getgrnam(SUGROUP)->gr_mem when checking for group membership.
* be more specific as to why 'su root' failed

NOTE: If a user's primary group is SUGROUP, and they're not a member
of SUGROUP in /etc/group, they will not be able to su.
1997-07-02 05:42:11 +00:00
..
apply Fix quote description; PR misc/2781. 1996-11-07 07:24:08 +00:00
apropos Back out the .PATH.c changes. The .depend problem (and others) 1997-05-08 21:11:01 +00:00
ar Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree: 1997-05-29 01:48:05 +00:00
asa kill extra blank comment line. 1995-04-21 03:01:41 +00:00
at remove dangerous sprintf calls. 1997-02-11 08:18:32 +00:00
audio/ctl Fix pasto. 1997-05-21 22:25:13 +00:00
audioctl Fix pasto. 1997-05-21 22:25:13 +00:00
banner Repair broken merge 1995-09-05 18:36:28 +00:00
basename Sync with 4.4lite2 1995-09-02 05:29:46 +00:00
bdes - Makefile cleanups 1997-03-24 21:57:01 +00:00
biff merge with 4.4Lite and err(3)ify 1995-03-26 02:34:19 +00:00
cal Sync with 4.4lite2 1995-09-02 05:29:46 +00:00
calendar Ensure calendar doesn't go past \0 in a string. 1997-06-20 08:11:34 +00:00
cap_mkdb Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree: 1997-05-29 01:48:05 +00:00
checknr merged with 4.4 lite 1995-03-26 04:10:08 +00:00
chflags Back out the .PATH.c changes. The .depend problem (and others) 1997-05-08 21:11:01 +00:00
chpass remove use of register. 1997-05-21 02:20:15 +00:00
cksum POSIX.2 utilities must call setlocale(LC_ALL, ""); 1997-06-26 23:18:05 +00:00
cmp RCS ID police 1997-01-09 20:18:21 +00:00
col alternate -> alternative, per PR 2643 1997-03-08 14:13:54 +00:00
colcrt merged with 4.4Lite 1995-03-26 05:25:51 +00:00
colrm Sync with 4.4lite2 1995-09-02 05:45:13 +00:00
column make usage string match manpage 1997-07-01 06:39:38 +00:00
comm Fixed bug I introduced when changing printf comparison vs. EOF. Noted by 1995-09-05 19:57:43 +00:00
compress - Makefile cleanups 1997-03-24 21:57:01 +00:00
crontab Back out the .PATH.c changes. The .depend problem (and others) 1997-05-08 21:11:01 +00:00
crunch parens around macro value. (oops!) 1997-01-23 19:13:56 +00:00
ctags Update lseek() constants: 1995-09-27 01:06:58 +00:00
cut getopt returns -1 not EOF. 1997-02-11 09:41:45 +00:00
dirname Sync with 4.4lite2 1995-09-02 05:57:23 +00:00
du Implement a -c (Grand Total) option, a'la GNU du(1). 1996-10-18 07:20:31 +00:00
eject Disks now share a common interface for "unlock" and "eject". Teach 1996-01-30 18:35:47 +00:00
elf2aout RCS ID police 1997-01-09 20:18:21 +00:00
elf2ecoff Need <sys/exec.h> to get stuff that <machine/ecoff_machdep.h> needs. 1997-06-16 22:10:27 +00:00
elfstrip Make these work again. 1997-05-09 12:38:30 +00:00
env RCS ID police 1997-01-09 20:18:21 +00:00
error NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:40:47 +00:00
expand Sync with 4.4lite2 1995-09-02 05:57:23 +00:00
false - Makefile cleanups 1997-03-24 21:57:01 +00:00
fdformat improve (slightly) dense wording in the bugs section 1997-06-16 02:13:46 +00:00
file Macro expansion of shell metacharacters did not occur for me. I made 1997-05-17 21:15:35 +00:00
find Changed format directive for printing number of blocks from %4ld to 1997-06-30 21:26:57 +00:00
finger NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:40:47 +00:00
fmt Determine characters to be swallowed by means of locale and ctype. 1997-05-31 15:13:49 +00:00
fold Sync with 4.4lite2 1995-09-01 01:42:41 +00:00
fpr Sync with 4.4lite2 1995-09-01 01:29:39 +00:00
from Sync with 4.4lite2 1995-09-01 01:29:39 +00:00
fsplit RCS ID police 1997-01-09 20:18:21 +00:00
fstat Make this compile again, and add support for ext2fs. 1997-06-12 07:45:28 +00:00
ftp Provide a different error message than `invalid url' when an 1997-06-29 06:34:50 +00:00
gencat RCS id police. 1997-02-09 14:33:50 +00:00
getconf RCS ID police 1997-01-09 20:18:21 +00:00
getopt RCS ID police 1997-01-09 20:18:21 +00:00
gprof - Makefile cleanups 1997-03-24 21:57:01 +00:00
head RCS ID police 1997-01-09 20:18:21 +00:00
hexdump RCS ID police 1997-01-09 20:18:21 +00:00
id Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree: 1997-05-29 01:48:05 +00:00
indent RCS ID police 1997-01-09 20:18:21 +00:00
ipcrm RCS ID police 1997-01-09 20:18:21 +00:00
ipcs avoid not knowing the length of internal buffers. 1997-02-11 08:43:23 +00:00
join revert to pre-merged version due to bugs; will fix. 1997-01-13 20:57:48 +00:00
jot Allocate proper storage. 1994-12-02 20:29:43 +00:00
kdump * NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:46:27 +00:00
ktrace PR 3666 from Thorsten Frueauf <frueauf@ira.uka.de> 1997-05-25 03:52:45 +00:00
lam
last be more careful with time_t's 1994-12-24 16:49:02 +00:00
lastcomm Fix lossage revealed by the recent `lseek() vs. negative offsets' changes; 1997-05-19 10:01:52 +00:00
ldd install all man pages. 1997-06-23 13:25:41 +00:00
leave Sync with 4.4lite2 1995-08-31 22:26:07 +00:00
less Back out the .PATH.c changes. The .depend problem (and others) 1997-05-08 21:11:01 +00:00
lex - Makefile cleanups 1997-03-24 21:57:01 +00:00
locate NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:47:50 +00:00
lock NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:47:50 +00:00
logger Merged with 4.4lite. 1994-12-22 06:17:28 +00:00
login Don't leak some information (``you have no s/key''). 1997-06-29 02:38:25 +00:00
logname Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree: 1997-05-29 01:48:05 +00:00
look Sync with 4.4lite2 1995-08-31 22:36:32 +00:00
lorder - Don't bother with two different versions of lorder.sh ... the version 1997-04-17 06:48:10 +00:00
m4 fix typo reported by Saitoh Masanobu in PR misc/3214. 1997-02-12 07:09:07 +00:00
machine RCS ID police 1997-01-09 20:18:21 +00:00
mail NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:47:50 +00:00
make Add WARNS=1 1997-07-01 21:17:00 +00:00
man fix typo 1995-12-05 03:33:39 +00:00
mesg PR/3406: SAITOH Masanobu: Delete extra backslash in mesg.1. 1997-03-29 21:43:03 +00:00
mixerctl Improve printing of values when changing a variable. 1997-05-23 17:55:29 +00:00
mkdep Set SCRIPTSNAME correctly. 1997-03-27 08:57:26 +00:00
mkfifo Merged with 4.4lite. 1994-12-23 07:16:29 +00:00
mkstr * NULL => 0 (Arne Juul; PR#3629) 1997-05-17 20:06:57 +00:00
modstat ensure strncpy() is nul terminated. 1997-05-07 16:35:34 +00:00
msgs NULL => 0 (Arne Juul; PR#3629) 1997-05-17 20:09:26 +00:00
netstat PR/3660: Dave Huang: Fix formatting misalignments in appletalk 1997-05-22 17:21:26 +00:00
newsyslog fix the the typos 1996-11-10 23:58:22 +00:00
nfsstat Message buffer passed to kvm_openfiles() should _POSIX2_LINE_MAX long; PR#3266 1997-03-03 22:22:48 +00:00
nice Sync with 4.4lite2 1995-08-31 23:30:56 +00:00
nm warn() instead of warnx() if opening the object file failed to avoid 1997-04-23 11:17:38 +00:00
nohup Sync with 4.4lite2. 1995-08-31 23:35:23 +00:00
pagesize - Makefile cleanups 1997-03-24 21:57:01 +00:00
passwd * free up data after a failed yp_match() 1997-05-21 02:09:51 +00:00
paste Sync to 4.4BSD-Lite2 1997-01-09 14:39:10 +00:00
patch use mkstemp() instead of mktemp() to create the tempfile 1997-03-22 03:38:03 +00:00
pr Fix formatting directives; from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp> 1997-06-26 20:23:44 +00:00
printenv Sync to 4.4BSD-Lite2 1997-01-09 15:17:30 +00:00
printf alternate -> alternative, per PR 2643 1997-03-08 14:13:54 +00:00
quota remove dangerous sprintf and strcpy calls. 1997-02-11 09:29:26 +00:00
ranlib Change .PATH.c to .PATH (another one I missed) 1997-05-14 15:57:07 +00:00
rdist rdist is no longer setuid root. 1997-05-26 14:30:47 +00:00
renice Sync to 4.4BSD-Lite2 1997-01-09 14:39:10 +00:00
rev Sync with 4.4BSD-Lite2 1995-09-28 08:49:37 +00:00
rlogin Fix several bugs in Kerberos support due to an accidental commit months ago of an incomplete version of the code. Now works; also now falls back to 'old' rlogin correctly. 1997-06-28 23:43:36 +00:00
rpcgen remove spurious comma in newstyle structure return case 1997-06-06 17:27:33 +00:00
rpcinfo RCS ID police 1997-01-09 20:18:21 +00:00
rs Document one more option. 1996-05-09 23:21:50 +00:00
rsh - PR/3727: Wolfgang Rupprecht: rsh takes 80% of the cpu 1997-06-16 20:54:16 +00:00
rup make rup handle uptimes of more than 1 year per pr-3060 1997-01-16 22:18:16 +00:00
ruptime add rwhod(8) xref 1997-03-08 22:23:19 +00:00
rusers RCS ID police 1997-01-09 20:18:21 +00:00
rwall RCS ID police 1997-01-09 20:18:21 +00:00
rwho print out a 1997-03-08 23:08:28 +00:00
script pass $SHELL or /bin/sh as argv[0] to subshell, instead of "sh"; fixes 1997-03-03 04:02:21 +00:00
sed Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree: 1997-05-29 01:48:05 +00:00
shar - Makefile cleanups 1997-03-24 21:57:01 +00:00
showmount fix usage message, clean up RPC error printing. 1996-05-01 18:14:10 +00:00
size add -t summary option per pr-3075 1997-01-16 22:23:13 +00:00
skey Don't need "md4.h" and "skey.h" -> <skey.h> 1997-06-22 18:51:47 +00:00
skeyinfo include <string.h> and <unistd.h> for prototypes 1997-06-24 06:18:58 +00:00
skeyinit use strncpy. 1997-02-11 09:25:24 +00:00
soelim Merged with 4.4lite. 1994-12-21 08:11:23 +00:00
split Sync with 4.4lite2 1995-08-31 22:22:05 +00:00
strings fix off-by-one error in malloc() call; from Ted Felix in PR bin/3752. 1997-06-17 07:26:38 +00:00
strip NULL => 0 (Arne Juul; PR#3629) 1997-05-17 20:09:26 +00:00
su As per discussion with mrg, back out parts of previous change. 1997-07-02 05:42:11 +00:00
systat Use the new getmaxx and getmaxy macros instead of directly accessing 1997-05-24 00:48:24 +00:00
tail Don't rely on select() not to modify the timeval argument. Also, 1996-02-13 16:49:10 +00:00
talk Use isprint() instead of hardcoded c<' '. This way, as soon as isprint() and 1997-04-21 16:15:32 +00:00
tcopy use <paths.h> instead of "pathnames.h" for _PATH_DEFTAPE 1997-04-15 07:23:06 +00:00
tee Merged with 4.4lite. 1994-12-09 01:43:36 +00:00
telnet fix some minor macro usage and other bugs; some from Saitoh Masanobu 1997-06-03 06:31:20 +00:00
tftp Fix some potential buffer overflow problems. 1996-09-07 21:05:37 +00:00
time Remnant of a different area: resource.h is now in /usr/include/sys 1996-12-18 23:18:57 +00:00
tip NULL => 0 (Arne Juul; PR#3629) 1997-05-17 20:09:26 +00:00
tn3270 Clean up these Makefiles some more. 1997-05-09 15:04:03 +00:00
touch Sync with 44lite2 1995-08-31 22:10:05 +00:00
tput - Makefile cleanups 1997-03-24 21:57:01 +00:00
tr Make more 8-bit clean (from Andreas Gustafsson; PR#1190). 1995-11-01 00:45:22 +00:00
true - Makefile cleanups 1997-03-24 21:57:01 +00:00
tset NULL => 0 (Arne Juul; PR#3629) 1997-05-17 20:09:26 +00:00
tsort Add a `-q' option, to be quiet about cycles. From der Mouse, PR 1204. 1996-01-17 20:37:49 +00:00
tty Merged with 4.4lite. 1994-12-07 00:46:54 +00:00
ul /etc/termcap -> /usr/share/misc/termcap. Fixes misc/1401. 1996-11-12 07:50:11 +00:00
uname RCS ID police 1997-01-09 20:18:21 +00:00
unexpand pull in string.h 1994-12-24 17:08:05 +00:00
unifdef gcc -Wall cleanup by jimj and myself 1994-12-20 01:44:07 +00:00
uniq Sync with 44lite2 1995-08-31 21:54:51 +00:00
units - Makefile cleanups 1997-03-24 21:57:01 +00:00
unvis RCS ID police 1997-01-09 20:18:21 +00:00
users more cleanup from jimj. 1994-12-20 15:58:19 +00:00
uudecode NULL => 0 (Arne Juul; PR#3629) 1997-05-17 20:09:26 +00:00
uuencode Changed inaccuracy in termination description described by PR#2226. 1997-04-10 20:22:50 +00:00
vacation * NULL => 0 (Arne Juul; PR#3629) 1997-05-17 20:24:26 +00:00
vgrind * NULL => 0 (Arne Juul; PR#3629) 1997-05-17 20:26:47 +00:00
vi Back out the .PATH.c changes. The .depend problem (and others) 1997-05-08 21:11:01 +00:00
vis Cleanup by jimj. 1994-12-20 16:13:02 +00:00
vmstat Repair the formatting of the by-memory-type table of "vmstat -m" 1997-04-10 15:49:30 +00:00
w Use inet_aton(3) rather than inet_addr(3). 1997-05-19 03:44:43 +00:00
wall Add WARNS=1 1997-07-01 20:49:59 +00:00
wc RCS ID police 1997-01-09 20:18:21 +00:00
what more cleanup from jimj & myself. 1994-12-20 16:01:03 +00:00
whatis Back out the .PATH.c changes. The .depend problem (and others) 1997-05-08 21:11:01 +00:00
whereis return 0 on successful exit, compare getopt() result to -1 instead of EOF. 1997-01-23 06:29:05 +00:00
which - Makefile cleanups 1997-03-24 21:57:01 +00:00
who alternate -> alternative, per PR 2643 1997-03-08 14:24:19 +00:00
whois Sync with 4.4lite2. 1995-08-31 21:51:32 +00:00
window alternate -> alternative, per PR 2643 1997-03-08 14:24:19 +00:00
write remove possibly dangerous sprintf and strcpy calls. 1997-02-11 08:21:03 +00:00
xargs Add support for -0 (to be used with find -print0); from OpenBSD. 1997-06-24 00:45:28 +00:00
xinstall Back out the .PATH.c changes. The .depend problem (and others) 1997-05-08 21:11:01 +00:00
xlint Replace the clean target with a CLEANFILES+= line 1997-05-15 10:08:47 +00:00
xstr * NULL => 0 (Arne Juul; PR#3629) 1997-05-17 20:26:47 +00:00
yacc Use mkstemp 1997-06-18 19:08:29 +00:00
yes lint fixes 1997-01-13 22:04:39 +00:00
ypcat fix typo; from Andrew Wheadon in PR bin/3264. 1997-02-28 06:35:48 +00:00
ypmatch RCS id police. 1996-05-13 02:43:35 +00:00
ypwhich Pull down yp/xdr fixes from release branch. 1996-05-29 20:00:52 +00:00
Makefile Add skeyinfo 1997-06-22 18:50:33 +00:00
Makefile.inc merge lite2 changes (just SCCS ids) 1997-03-07 06:14:02 +00:00