Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Oct 2011 09:20:03 GMT
From:      Nali Toja <nalitoja@gmail.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/119695: pw(8) does not interact with nscd(8)
Message-ID:  <201110030920.p939K3N6030736@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/119695; it has been noted by GNATS.

From: Nali Toja <nalitoja@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/119695: pw(8) does not interact with nscd(8)
Date: Mon, 03 Oct 2011 09:11:47 +0000

 --=-=-=
 Content-Type: text/plain
 
 How about the following workaround?
 
 --=-=-=
 Content-Type: text/x-patch
 Content-Disposition: inline; filename=reset_cache.diff
 
 Index: usr.sbin/pw/fileupd.c
 ===================================================================
 --- usr.sbin/pw/fileupd.c	(revision 224534)
 +++ usr.sbin/pw/fileupd.c	(working copy)
 @@ -188,6 +188,7 @@ fileupdate(char const * filename, mode_t fmode, ch
  									rename(file, filename);
  								else
  									ftruncate(infd, ftell(infp));
 +								system("{ nscd -I group; nscd -I passwd; } 2>/dev/null >&2");
  							}
  						}
  						free(line);
 
 --=-=-=--



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