OpenGrok
Cross Reference: newgrp.c
xref
: /
src
/
usr.bin
/
newgrp
/
newgrp.c
Home
|
History
|
Annotate
|
Download
|
only in
newgrp
History log of
/src/usr.bin/newgrp/newgrp.c
Revision
Date
Author
Comments
1.7
16-Sep-2011
joerg
Use __dead
1.6
28-Apr-2008
martin
Remove clause 3 and 4 from TNF licenses
1.5
05-Apr-2008
christos
branches: 1.5.2;
call setprogname(), from Anon Ymous
1.4
17-Oct-2007
christos
From Anon Ymous:
- general whitespace, lint fixes, error checking
- document the exit status of the command per POSIX
- use the shared with su group adding utilities.
1.3
05-Oct-2007
christos
branches: 1.3.2;
don't zero out the wrong pointer. from Anon Ymous
1.2
04-Oct-2007
christos
Fix reversed test (from Anon Ymous)
1.1
21-Jun-2007
ginsbach
branches: 1.1.4;
Add the newgrp(1) utility, which changes effective group ID. This
is a POSIX (IEEE Std 1003.1, 2004 / Open Group Base Specifications
Issue 6) User Portability Utility.
1.1.4.1
06-Nov-2007
matt
sync with HEAD
1.3.2.1
28-Oct-2007
ginsbach
Fix additional bugs in original newgrp(1) implementation.
- Fix compile errors in conditionally compiled code
(!(defined(BSD) && BSD >= 199306)) as noted by Anon Ymous.
- Don't do anything with the supplementary group list when the new and old
groups are the same. (Based on discussions with Anon Ymous.)
+ This fixes a potential bug in the conditionally compiled code
(!(defined(BSD) && BSD >= 199306)). In this case the new group
is incorrectly added to the supplementary list on a system where
the effective group is not in this list.
+ This also simplifies processing on systems where the effective
group is normally in the supplementary list.
- Handle unexpected errors in the addgrp function more consistently
by using warn(3) throughout the function.
1.5.2.1
18-May-2008
yamt
sync with head.
Indexes created Wed Oct 22 13:09:56 GMT 2025