Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 May 2002 21:00:31 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Adam Migus <amigus@FreeBSD.org>
Cc:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   RE: PERFORCE change 10969 for review
Message-ID:  <XFMail.20020507210031.jhb@FreeBSD.org>
In-Reply-To: <200205072105.g47L58d47891@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 07-May-2002 Adam Migus wrote:
> http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10969
> 
> Change 10969 by amigus@amigus_ganymede on 2002/05/07 14:04:56
> 
>       passwd and friends fail when the user has a '+' in their passwd
>       file for NIS.  It fails because _PWF_SOURCE is not set.  This
>       patch fixes it.  This is also a bug in 5.0-CURRENT so someone
>       should commit it to the main tree.

Ooo, nice catch!

> Affected files ...
> 
> ... //depot/projects/trustedbsd/mac/lib/libc/gen/getpwent.c#4 edit
> 
> Differences ...
> 
> ==== //depot/projects/trustedbsd/mac/lib/libc/gen/getpwent.c#4 (text+ko) ====
> 
> @@ -966,6 +966,9 @@
>                               break;
>                       }
>                       break;
> +             default:
> +                     _pw_passwd.pw_fields &= ~_PWF_SOURCE;
> +                     _pw_passwd.pw_fields |= _PWF_FILES;
>               }
>               if ((search == _PW_KEYBYNAME &&
>                           strcmp(_pw_passwd.pw_name, name) == 0)

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020507210031.jhb>