diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-11-20 17:10:05 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-11-20 17:10:05 +0000 |
commit | 647b92a7d420bee9244054947379f026d105def8 (patch) | |
tree | b6789b659745a0a709f4a1847036c2b0b34ff606 /winsup/cygwin/ChangeLog | |
parent | 3a366b12f692fdfa5aeb8e7c603faa917d786011 (diff) | |
download | newlib-647b92a7d420bee9244054947379f026d105def8.zip newlib-647b92a7d420bee9244054947379f026d105def8.tar.gz newlib-647b92a7d420bee9244054947379f026d105def8.tar.bz2 |
* security.h: Declare internal_getpwsid and internal_getgrsid.
Undeclare internal_getpwent. Define DEFAULT_UID_NT. Change
DEFAULT_GID.
* passwd.cc (internal_getpwsid): New function.
(internal_getpwent): Suppress.
(read_etc_passwd): Make static. Rewrite the code for the completion
line. Set curr_lines to 0.
(parse_pwd): Change type to static int. Return 0 for short lines.
(add_pwd_line): Pay attention to the value of parse_pwd.
(search_for): Do not look for nor return the DEFAULT_UID.
* grp.cc (read_etc_group): Make static. Free gr_mem and set
curr_lines to 0. Always call add_pwd_line. Rewrite the code for the
completion line.
(internal_getgrsid): New function.
(parse_grp): If grp.gr_mem is empty, set it to &null_ptr.
Never NULL gr_passwd.
(getgrgid32): Only return the default if ntsec is off and the gid is
ILLEGAL_GID.
* sec_helper.cc (cygsid::get_id): Use getpwsid and getgrsid.
(cygsid_getfrompw): Clean up last line.
(cygsid_getfromgr): Ditto.
(is_grp_member): Use getpwuid32 and getgrgid32.
* uinfo.cc (internal_getlogin): Set DEFAULT_GID at start.
Use getpwsid. Move the read of /etc/group after the second access
to /etc/passwd. Change some debug_printf.
Diffstat (limited to 'winsup/cygwin/ChangeLog')
-rw-r--r-- | winsup/cygwin/ChangeLog | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7ee12a3..e87d8c9 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,31 @@ +2002-11-20 Pierre Humblet <pierre.humblet@ieee.org> + + * security.h: Declare internal_getpwsid and internal_getgrsid. + Undeclare internal_getpwent. Define DEFAULT_UID_NT. Change + DEFAULT_GID. + * passwd.cc (internal_getpwsid): New function. + (internal_getpwent): Suppress. + (read_etc_passwd): Make static. Rewrite the code for the completion + line. Set curr_lines to 0. + (parse_pwd): Change type to static int. Return 0 for short lines. + (add_pwd_line): Pay attention to the value of parse_pwd. + (search_for): Do not look for nor return the DEFAULT_UID. + * grp.cc (read_etc_group): Make static. Free gr_mem and set + curr_lines to 0. Always call add_pwd_line. Rewrite the code for the + completion line. + (internal_getgrsid): New function. + (parse_grp): If grp.gr_mem is empty, set it to &null_ptr. + Never NULL gr_passwd. + (getgrgid32): Only return the default if ntsec is off and the gid is + ILLEGAL_GID. + * sec_helper.cc (cygsid::get_id): Use getpwsid and getgrsid. + (cygsid_getfrompw): Clean up last line. + (cygsid_getfromgr): Ditto. + (is_grp_member): Use getpwuid32 and getgrgid32. + * uinfo.cc (internal_getlogin): Set DEFAULT_GID at start. + Use getpwsid. Move the read of /etc/group after the second access + to /etc/passwd. Change some debug_printf. + 2002-11-20 Steven O'Brien <steven.obrien2@ntlworld.com> * poll.cc (poll): ...but set POLLIN instead. |