Re: [7.0beta3] Bug in initdb

From: Marc Baudoin <babafou(at)agm-ita(dot)agm-ita(dot)ensta(dot)fr>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: bugs(at)postgreSQL(dot)org
Subject: Re: [7.0beta3] Bug in initdb
Date: 2000-04-03 20:07:39
Message-ID: 20000403220739.A14683@agm-ita.agm-ita.ensta.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> écrit :
> > Sorry but I couldn't find the bug-template file as indicated in
> > item 1.13 of the FAQ.
> >
> > I came across a minor bug in PostgreSQL 7.0beta3 on my NetBSD 1.4
> > system when running initdb (compile was smooth):
> >
> > initdb: data path must be specified as an absolute path
> >
> > It seems the ! if this test takes precedence over the pipe:
> >
> > if echo "$PGDATA" | grep -v '^/' > /dev/null 2>&1
> > then
> > echo "$CMDNAME: data path must be specified as an absolute path"
> > fi
> >
> > This patch solves the problem:
> >
> > --- initdb.orig Sun Apr 2 22:32:40 2000
> > +++ initdb Sun Apr 2 22:28:21 2000
> > @@ -282,7 +282,7 @@
> > # The data path must be absolute, because the backend doesn't like
> > # '.' and '..' stuff. (Should perhaps be fixed there.)
> >
> > -if ! echo "$PGDATA" | grep '^/' > /dev/null 2>&1
> > +if echo "$PGDATA" | grep -v '^/' > /dev/null 2>&1
> > then
> > echo "$CMDNAME: data path must be specified as an absolute path"
> > fi
>
> Well the good news is it seems someone else fixed it. Can you try 7.0
> current and see if that is better. Thanks.

I didn't try to compile it on my poor old 486 but the code
for initdb.sh seems OK now.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message John M. Flinchbaugh 2000-04-05 20:50:00 perl 5.6.0 almost working!
Previous Message Bruce Momjian 2000-04-02 21:38:10 Re: [7.0beta3] Bug in initdb