| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
when we fail to find the entry in the commonly accepted files, we
query a server over a Unix domain socket on /var/run/nscd/socket.
the protocol used here is compatible with glibc's nscd protocol on
most systems (all that use 32-bit numbers for all the protocol fields,
which appears to be everything but Alpha).
|
|
|
|
|
|
|
|
|
| |
errno was treated as the error status when the return value of getline
was negative, but this condition can simply indicate EOF and is not
necessarily an error.
the spurious errors caused by this bug masked the bug which was fixed
in commit fc5a96c9c8aa186effad7520d5df6b616bbfd29d.
|
|
|
|
|
|
|
| |
the wrong condition was used in determining the presence of a result
that needs space/copying for the _r functions. a zero return value
does not necessarily mean success; it can also be a non-error negative
result: no such user/group.
|
|
|
|
|
| |
this allows getgrnam and getgrgid to share code with the _r versions
in preparation for alternate backend support.
|
|
|
|
|
| |
this allows getpwnam and getpwuid to share code with the _r versions
in preparation for alternate backend support.
|
|
|
|
|
|
|
|
|
| |
when using /etc/shadow (rather than tcb) as its backend, getspnam_r
matched any username starting with the caller-provided string rather
than requiring an exact match. in practice this seems to have affected
only systems where one valid username is a prefix for another valid
username, and where the longer username appears first in the shadow
file.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This way, if an fprintf fails, we get an incomplete group entry rather
than a corrupted one.
|
|
|
|
|
|
|
| |
bug report and patch by Michael Forney. the terminating null pointer
at the end of the gr_mem array was overwriting the beginning of the
string data, causing the gr_name member to always be a zero-length
string.
|
|
|
|
|
|
|
|
|
| |
this change is both to fix one of the remaining type (and thus C++
ABI) mismatches with glibc/LSB and to allow use of the full range of
uid and gid values, if so desired.
passwd/group access functions were not prepared to deal with unsigned
values, so they too have been fixed with this commit.
|
|
|
|
|
|
|
|
|
| |
since shadow does not yet support enumeration (getspent), the
corresponding FILE-based get and put versions are also subbed out for
now. this is partly out of laziness and partly because it's not clear
how they should work in the presence of TCB shadow files. the stubs
should make it possible to compile some software that expects them to
exist, but such software still may not work properly.
|
|
|
|
|
|
| |
based on patch by Isaac Dunham, moved to its own file to avoid
increasing bss on static linked programs not using this nonstandard
function but using the standard getgrent function, and vice versa.
|
| |
|
|
|
|
| |
these changes are a prerequisite to making stdio cancellable.
|
|
|
|
| |
based on patch by Jeremy Huntwork
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|