Strange code in initdb

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Strange code in initdb
Date: 2004-10-12 18:29:56
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

What is this trying to tell us?

if (ret == -1)
fprintf(stderr,
_("The program \"postgres\" is needed by %s "
"but was not found in the same directory as \"%s\".\n"
"Check your installation.\n"),
progname, progname);
else
fprintf(stderr,
_("The program \"postgres\" was found by %s "
"but was not the same version as \"%s\".\n"
"Check your installation.\n"),
progname, progname);

Shouldn't the second progname be argv[0] or something else that contains
the full path?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2004-10-12 18:51:47 Required permissions for data directory
Previous Message Dann Corbit 2004-10-12 17:12:01 Cannot build latest snapshot under Mingw