This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Internal get{pw,gr}XX calls


On Sun, Dec 01, 2002 at 12:03:21AM -0500, Pierre A. Humblet wrote:
> 2002-11-30  Pierre Humblet <pierre.humblet@ieee.org>
> 
> 	* pwdgrp.h (pwdgrp_check::pwdgrp_state): Replace by 
> 	pwdgrp_check::isinitializing ().
> 	(pwdgrp_check::isinitializing): Create.
> 	* passwd.cc (grab_int): Change type to unsigned, use strtoul and 
> 	set the pointer content to 0 if the field is invalid.
> 	(parse_pwd): Move validity test after getting pw_gid.
> 	(read_etc_passwd): Replace "passwd_state <= " by 
> 	passwd_state::isinitializing ().	
> 	(internal_getpwuid): Ditto.
> 	(internal_getpwnam): Ditto.
> 	(getpwent): Ditto.
> 	(getpass): Ditto.
> 	* grp.cc (parse_grp): Use strtoul for gr_gid and verify the validity.
> 	(read_etc_group): Replace "group_state <= " by 
> 	group_state::isinitializing (). 
> 	(internal_getgrgid): Ditto.
> 	(getgrent32): Ditto.
> 	(internal_getgrent): Ditto.

I've applied the initial patch plus this one.

Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]