> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Andrew Dunstan
> Sent: 15 October 2004 15:07
> To: PostgreSQL-development
> Subject: [HACKERS] get_progname and .exe suffix
>
>
> Somewhere along the way, pro
My original code for initdb stripped the .exe suffix off the progname
stored, in this snippet of code:
carg0 = xstrdup(argv[0]);
canonicalise_path(carg0);
lastsep = strrchr(carg0, *'/'*);
progname = lastsep ? xstrdup(lastsep + 1) : carg0;
#*if* *defined*(__CYGWIN__