bin/119695: pw(8) does not interact with nscd(8)

Nali Toja nalitoja at gmail.com
Mon Oct 3 09:20:03 UTC 2011


The following reply was made to PR bin/119695; it has been noted by GNATS.

From: Nali Toja <nalitoja at gmail.com>
To: bug-followup at 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);
 
 --=-=-=--


More information about the freebsd-bugs mailing list