This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Suggestion for setup



> -----Original Message-----
> From: Michael A Chase [mailto:mchase@ix.netcom.com]
> Sent: Wednesday, March 06, 2002 11:46 PM
> To: Andrew DeFaria; cygwin
> Subject: Re: Suggestion for setup
> 
> 
> ----- Original Message -----
> From: "Andrew DeFaria" <Andrew@DeFaria.com>
> Newsgroups: gmane.os.cygwin
> To: <cygwin@cygwin.com>
> Sent: Wednesday, March 06, 2002 13:46
> Subject: Re: Suggestion for setup
> 
> 
> > Michael A Chase wrote:
> >
> > > I recently messed with the function that does that, so I 
> can confirm
> that it
> > > only runs mkpasswd and mkgroup if the corresponding files 
> don't exist.

	<skipped>

> 
> static void
> make_passwd_group ()
> {
>   String fname = cygpath ("/etc/postinstall/passwd-grp.bat");
>   io_stream::mkpath_p (PATH_TO_FILE, fname);
> 
>   if (uexists ("/etc/passwd") && uexists ("/etc/group"))
>     return;
> . . .

So /etc/passwd AND /etc/group are re-created if /etc/passwd OR /etc/group
does not exist ;-(

Would be better to condition creation of /etc/passwd to it not being
present, and the like for /etc/group.

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]