Commit Graph

30 Commits

Author SHA1 Message Date
christos 3584aaaf1c - don't use an uninitialized grouplist (from Patrick Welche)
- While here:
	* Allow all numeric users and groups
	* Error check string to number conversion
	* Factor out common code
2011-09-20 14:28:52 +00:00
mbalmer b6211abfc7 Initialize local variables that previously were global (user, group). 2011-08-28 08:32:47 +00:00
joerg b71455acb5 Use __dead. Move global variables into function scope. 2011-08-27 22:32:44 +00:00
wiz 4db9004657 Re-order and synchronize options listed in manpage (`SYNOPSIS' and
text) as well as `usage'-line; several punctuation improvements.
From Snader_LB.
2011-08-15 14:43:17 +00:00
jruoho 42a8adcdaf Xref ldd(1) as per PR bin/30043 from Jochen Keil. 2010-07-06 23:05:56 +00:00
lukem d877c4c3c0 Enable WARNS=4 by default, except for:
cpuctl  dumplfs  hprop  ipf  iprop-log  kadmin  kcm  kdc  kdigest
	kimpersonate  kstash  ktutil  makefs  ndbootd  ntp  pppd  quot
	racoon  racoonctl  rtadvd  sntp  sup  tcpdchk  tcpdmatch  tcpdump
	traceroute  traceroute6  user  veriexecgen  wsmoused  zic
(Mostly third-party applications)
2009-04-22 15:23:01 +00:00
lukem 9c1945664c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
agc 326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
manu 6248c5cc45 strtol -> strtoul because we use an unsigned type (uid_t/gid_t)
isdigit with an unsigned char cast
2001-07-14 21:56:45 +00:00
lukem 8d7585309c check that too many supplementary groups aren't given 2001-04-06 02:34:04 +00:00
lukem 847cf9865a improve parsing of users, groups, and grouplists 2001-04-06 02:24:14 +00:00
lukem f2ed791ee4 enable WARNS=2 2001-04-06 02:19:27 +00:00
lukem b990482c33 knf 2001-04-06 02:14:52 +00:00
lukem 5bb4d7013b use Ar macro appropriately 2001-03-19 03:41:42 +00:00
mrg 4e24c8f4bb add NetBSD id tags. 2000-08-17 12:36:32 +00:00
garbled d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
mrg 16d7f0c241 let chroot take "-u user", "-g group" and "-G group,list,group,..." arguments 1998-10-06 03:47:50 +00:00
lukem fc90756956 Implement a new manual page category ``SECURITY CONSIDERATIONS''
(suggested by mycroft)
1998-06-08 12:41:41 +00:00
lukem acbb568349 WARNSify 1997-10-18 04:06:28 +00:00
lukem 045cfc87d2 Add a CAVEATS section explaining that making this setuid root is bad.
As per discussion generated by [misc/2634].
1997-06-22 08:26:10 +00:00
mikel e65788c58e merge lite-2 changes.
RCSid and getopt() return type police.
1997-03-06 07:00:50 +00:00
cgd d8806814a6 specify man pages the new way. 1994-12-22 11:32:57 +00:00
jtc fbdf4e031f Include <stdlib.h> for getenv() prototype.
Use standard error message routines.
1994-01-07 20:34:23 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft b465cf4697 Add RCS identifiers. 1993-07-30 22:11:51 +00:00
mycroft 804c4234ec Cleanup for GCC 2. 1993-04-18 19:27:06 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00