Date: Sat, 30 Jul 2011 15:00:13 +0200 From: Michel Talon <talon@lpthe.jussieu.fr> To: Test Rat <ttsestt@gmail.com>, freebsd-ports@freebsd.org Subject: Re: nscd vs. ports that add user/group (Was: Time to mark portupgrade deprecated?) Message-ID: <20110730130013.GA80475@lpthe.jussieu.fr> In-Reply-To: <86ipqkht74.fsf_-_@gmail.com> References: <20110730110312.GA75209@lpthe.jussieu.fr> <86zkjwhuyf.fsf@gmail.com> <86ipqkht74.fsf_-_@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 30, 2011 at 04:02:55PM +0400, Test Rat wrote: > > Did you have nscd(8) running at the time? Try invalidating its cache. > > Nevermind previous patch. This one actually works. You may be perfectly right, i think i have added nscd to the installation after having added hald, etc. but before adding avahi-app. However i have seen such problems in the past, before the introduction of nscd, as far as i remember. > > %% it's still an ugly hack > Index: usr.sbin/pw/pwupd.c > =================================================================== > --- usr.sbin/pw/pwupd.c (revision 224499) > +++ usr.sbin/pw/pwupd.c (working copy) > @@ -191,6 +191,7 @@ pw_update(struct passwd * pwd, char const * user, > } > } > } > + system("nscd -I passwd 2>/dev/null >&2"); > return rc; > } > > Index: usr.sbin/pw/grupd.c > =================================================================== > --- usr.sbin/pw/grupd.c (revision 224499) > +++ usr.sbin/pw/grupd.c (working copy) > @@ -148,6 +148,7 @@ gr_update(struct group * grp, char const * group, > } > if (grbuf != NULL) > free(grbuf); > + system("nscd -I group 2>/dev/null >&2"); > return l; > } > > %% Many thanks for the suggestion. -- Michel TALON
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110730130013.GA80475>