Oops in pwdread.c

Nick Burrett nick at dsvr.net
Mon Aug 5 02:11:17 PDT 2002


Peter Naulls wrote:
> ===================================================================
> RCS file: /usr/local/cvsroot/gccsdk/unixlib/source/pwd/pwdread.c,v
> retrieving revision 1.2.2.2
> diff -u -r1.2.2.2 pwdread.c
> --- unixlib/source/pwd/pwdread.c        10 Jun 2002 11:42:49 -0000      1.2.2.2
> +++ unixlib/source/pwd/pwdread.c        4 Aug 2002 08:52:03 -0000
> @@ -98,7 +98,7 @@
>    static int pwd_inited;
>    static struct passwd pwd;
>  
> -  if (pwd_inited != 0)
> +  if (pwd_inited == 0)
>      {
>        pwd.pw_name   = strdup("unixlib");
>        pwd.pw_passwd = strdup("");
> 

Thanks.  Committed.

-- 
Nick Burrett
Development Manager, Designer Servers Ltd.   http://www.dsvr.co.uk




More information about the gcc mailing list