Home | History | Annotate | only in /src/usr.bin/newgrp
History log of /src/usr.bin/newgrp
RevisionDateAuthorComments
 1.5 13-Jul-2016  shm Add USE_FORT support.
 1.4 14-Apr-2009  lukem Enable WARNS=4 by default for usr.bin, except for:
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
 1.3 27-Oct-2007  christos branches: 1.3.14;
Move the grutil code from su to here. Requested by ginsbach@
 1.2 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.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.14.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.5 26-Oct-2022  gutteridge grutil.c: fix grammar in a comment
 1.4 23-Jun-2014  shm PR/47319 use addgrp_ret_t instead of magic values
 1.3 24-Jan-2013  christos branches: 1.3.6;
fix type or rval.
 1.2 28-Apr-2008  martin branches: 1.2.4; 1.2.26;
Remove clause 3 and 4 from TNF licenses
 1.1 27-Oct-2007  christos branches: 1.1.2; 1.1.8;
Move the grutil code from su to here. Requested by ginsbach@
 1.1.8.1 18-May-2008  yamt sync with head.
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 27-Oct-2007  matt file grutil.c was added on branch matt-armv6 on 2007-11-06 23:36:08 +0000
 1.2.26.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.26.1 25-Feb-2013  tls resync with head
 1.2.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.6.1 10-Aug-2014  tls Rebase.
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 27-Oct-2007  christos branches: 1.1.2; 1.1.8;
Move the grutil code from su to here. Requested by ginsbach@
 1.1.8.1 18-May-2008  yamt sync with head.
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 27-Oct-2007  matt file grutil.h was added on branch matt-armv6 on 2007-11-06 23:36:08 +0000
 1.5 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.4 14-May-2010  joerg Resort sections to canonical order.
 1.3 02-May-2008  martin Move to 2 clause license
 1.2 17-Oct-2007  christos branches: 1.2.8;
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.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.2.8.1 18-May-2008  yamt sync with head.
 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.

RSS XML Feed