Re: [HACKERS] get_progname and .exe suffix

2004-10-15 Thread Dave Page
> -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

[HACKERS] get_progname and .exe suffix

2004-10-15 Thread Andrew Dunstan
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__