CVSROOT:        /cvs/src
Module name:    src
Changes by:     [EMAIL PROTECTED]  2002-11-20 09:10:06

Modified files:
        winsup/cygwin  : ChangeLog grp.cc passwd.cc sec_helper.cc 
                         security.h uinfo.cc 

Log message:
        * 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.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.1602&r2=1.1603
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/grp.cc.diff?cvsroot=src&r1=1.59&r2=1.60
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/passwd.cc.diff?cvsroot=src&r1=1.51&r2=1.52
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sec_helper.cc.diff?cvsroot=src&r1=1.28&r2=1.29
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/security.h.diff?cvsroot=src&r1=1.33&r2=1.34
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/uinfo.cc.diff?cvsroot=src&r1=1.93&r2=1.94

Reply via email to