www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/07/03:50:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <002401c1c5b4$f1ef9500$d700a8c0@mchasecompaq>
From: "Michael A Chase" <mchase AT ix DOT netcom DOT com>
To: "Bernard Dautrevaux" <Dautrevaux AT microprocess DOT com>,
"cygwin" <cygwin AT cygwin DOT com>
References: <17B78BDF120BD411B70100500422FC6309E4BB AT IIS000>
Subject: Re: Suggestion for setup
Date: Thu, 7 Mar 2002 00:41:49 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

----- Original Message -----
From: "Bernard Dautrevaux" <Dautrevaux AT microprocess DOT com>
To: "'Michael A Chase'" <mchase AT ix DOT netcom DOT com>; "Andrew DeFaria"
<Andrew AT DeFaria DOT com>; "cygwin" <cygwin AT cygwin DOT com>
Sent: Thursday, March 07, 2002 00:17
Subject: RE: Suggestion for setup


>
> > -----Original Message-----
> > From: Michael A Chase [mailto:mchase AT ix DOT netcom DOT com]
> > Sent: Wednesday, March 06, 2002 11:46 PM
> > To: Andrew DeFaria; cygwin
> > Subject: Re: Suggestion for setup
> >
> >
> > ----- Original Message -----
> > From: "Andrew DeFaria" <Andrew AT DeFaria DOT com>
> > Newsgroups: gmane.os.cygwin
> > To: <cygwin AT cygwin DOT 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.

I only showed the function down to the first cutoff.  If both files are
already present, the function returns immediately and the batch file isn't
opened.  If either is present, the command to create that file isn't put in
the batch file.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019