#
8c41afe6 |
| 29-Aug-2012 |
dholland <dholland@NetBSD.org> |
Check for NULL *before* using ALIGN().
I don't remember what prompted this, but it's obviously a desirable fix and I've been carrying it on a heavily-used machine for more than a year.
|
#
2ad3ddd6 |
| 29-Mar-2012 |
christos <christos@NetBSD.org> |
PR?40728: W. Stukenbrock: Fix various issues with NIS-netgroups in users and groups.
|
#
c5e820ca |
| 13-Mar-2012 |
christos <christos@NetBSD.org> |
PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values t
PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds)
approved by core@
show more ...
|
#
9292cfb2 |
| 15-Oct-2011 |
christos <christos@NetBSD.org> |
close on exec fixes: - open + fcntl -> open O_CLOEXEC - configuration database file descriptors that can stay open are now opened fopen(db, "re")
|
#
82f4eed5 |
| 09-Jun-2011 |
sjg <sjg@NetBSD.org> |
_gr_copy() can get called with fromgrp->gr_mem == NULL.
|
#
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
#
b513fb7c |
| 03-Feb-2007 |
christos <christos@NetBSD.org> |
make this compile with DIAGNOSTIC
|
#
ce2c90c7 |
| 15-Oct-2006 |
christos <christos@NetBSD.org> |
fix incomplete initializers
|
#
8a8a2fc7 |
| 19-Mar-2006 |
christos <christos@NetBSD.org> |
iCoverity CID 706: Remove dead code.
|
#
9fcbc803 |
| 19-Apr-2005 |
lukem <lukem@NetBSD.org> |
When sequentially parsing a source looking for entries don't fail with NS_UNAVAIL on an unparseable or too long line; instead try the next entry. This is more consistent with the behaviour prior to t
When sequentially parsing a source looking for entries don't fail with NS_UNAVAIL on an unparseable or too long line; instead try the next entry. This is more consistent with the behaviour prior to the rework in rev 1.49.
show more ...
|
#
d0388cff |
| 19-Apr-2005 |
lukem <lukem@NetBSD.org> |
getgrent(): Return the correct result. (broken in rev 1.56 -- Hi Christos!)
getgr{ent,nam,uid}_r(): Return 0 "entry not found" and errno for other failures. ("entry not found" still sets *result to
getgrent(): Return the correct result. (broken in rev 1.56 -- Hi Christos!)
getgr{ent,nam,uid}_r(): Return 0 "entry not found" and errno for other failures. ("entry not found" still sets *result to NULL).
Various backends: don't set the retval to errno (or modify errno) for NS_NOTFOUND.
Per discussion with Klaus Klein.
show more ...
|
#
184974e0 |
| 02-Apr-2005 |
christos <christos@NetBSD.org> |
PR/29849, PR/29850: Add getpwent_r and getgrent_r
|
#
7f46de1e |
| 31-Mar-2005 |
lukem <lukem@NetBSD.org> |
tweak comment reminding us about lack of reentrancy
|
#
337d8d73 |
| 06-Jan-2005 |
lukem <lukem@NetBSD.org> |
Rename various "internal" variables and functions and make non-static so other internal libc source files can use these (including getgroupmembership(3)).
Be more consistent in the API that the __gr
Rename various "internal" variables and functions and make non-static so other internal libc source files can use these (including getgroupmembership(3)).
Be more consistent in the API that the __grscan_<source>() methods use.
In __grscan_compat() support an optional custom 'search' function used when a "+" lookup is required. Normally this will be getgrent() from group_compat, but getgroupmembership(3) will use a tailored compat search routine for efficiency.
show more ...
|
#
c873ad0d |
| 10-Nov-2004 |
lukem <lukem@NetBSD.org> |
Use the common __nsdefaultFOO rather than private defaultFOO duplicates.
|
#
2ffe6b72 |
| 10-Nov-2004 |
lukem <lukem@NetBSD.org> |
Use _GETGR_R_SIZE_MAX from <limits.h> rather than defining a private version.
|
#
c49e8087 |
| 29-Oct-2004 |
lukem <lukem@NetBSD.org> |
#include "reentrant.h" instead of <threadlib.h>
|
#
feb92219 |
| 24-Oct-2004 |
lukem <lukem@NetBSD.org> |
Protect access to all public functions via a mutex as some of the backends are not reentrant (such as compat getgr*_r, because it uses the non reentrant _{dns,nis}_getgrent() backends to implement `+
Protect access to all public functions via a mutex as some of the backends are not reentrant (such as compat getgr*_r, because it uses the non reentrant _{dns,nis}_getgrent() backends to implement `+group').
show more ...
|
#
c54f283e |
| 04-Oct-2004 |
lukem <lukem@NetBSD.org> |
Overhaul the use of nsdispatch(3) by public APIs so that the back-end methods use va_list in a manner that is directly related to the public API. This makes it much easier to write dynamic nsswitch b
Overhaul the use of nsdispatch(3) by public APIs so that the back-end methods use va_list in a manner that is directly related to the public API. This makes it much easier to write dynamic nsswitch backends for getgrent(3). Per my proposal on tech-userlevel.
Implement getgrgid_r() and getgrnam_r() APIs per the POSIX 1003.1, 2004 Ed. These aren't fully reentrant or threadsafe yet, because the compat stuff currently uses non-reentrant data sources (getnetgrent(3), getgrent(3)), and there is probably some locking to be improved in the backends. This will be fixed in the near future. We also need to add _SC_GETGR_R_SIZE_MAX to sysconf(3).
show more ...
|
#
9f1aac5b |
| 13-Oct-2003 |
agc <agc@NetBSD.org> |
Move Jason Downs's code from a 4-clause to a 3-clause licence by removing the advertising clause. Diffs provided in PR 22410 by Joel Baker, confirmed to the board by Jason Downs.
With additional th
Move Jason Downs's code from a 4-clause to a 3-clause licence by removing the advertising clause. Diffs provided in PR 22410 by Joel Baker, confirmed to the board by Jason Downs.
With additional thanks to Jason Thorpe.
show more ...
|
#
eb7c1594 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
|
#
11876305 |
| 17-Feb-2003 |
simonb <simonb@NetBSD.org> |
Fix a tyop in a comment.
|
#
16c5a7dd |
| 16-Feb-2003 |
elric <elric@NetBSD.org> |
Reorganise the getting of grouplists for a user so that Hesiod (and potentially other name services) can directly query for a user's grouplist rather than needing to iterate over the group map. This
Reorganise the getting of grouplists for a user so that Hesiod (and potentially other name services) can directly query for a user's grouplist rather than needing to iterate over the group map. This is required for correct operation of Hesiod.
Reviewed by: lukem, christos Addresses PR lib/20183
show more ...
|
#
1b4eceb5 |
| 03-Feb-2003 |
elric <elric@NetBSD.org> |
When looking up gids with hesiod, use the gid map and fall back to the group map.
Addresses PR lib/20145
|
#
9134efab |
| 17-Nov-2002 |
itojun <itojun@NetBSD.org> |
use strlcpy where it is more appropriate.
|