GNU bug report logs - #10359
libtool changing basename(argv[0])

Previous Next

Package: libtool;

Reported by: Lucas De Marchi <lucas.demarchi <at> profusion.mobi>

Date: Sat, 24 Dec 2011 15:55:02 UTC

Severity: normal

Merged with 10358

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lucas De Marchi <lucas.demarchi <at> profusion.mobi>
To: bug-libtool <at> gnu.org
Subject: Re: libtool changing basename(argv[0])
Date: Fri, 23 Dec 2011 02:12:34 -0200
[Message part 1 (text/plain, inline)]
On Fri, Dec 23, 2011 at 1:51 AM, Lucas De Marchi
<lucas.demarchi <at> profusion.mobi> wrote:
> Hey all,
>
> In one of my projects I rely on basename(argv[0]) to know what to do
> in the application (because it can be called from compat symlinks).
> With libtool 2.4.2 I'm having an issue that basename(argv[0]) returns
> lt-progname instead of just progname. Another developer has libtool
> 2.4 and does not have this problem.
>
> Is this a regression from 2.4? Googling shows me some similar problem
> but with older versions (~ 2009)

Checking the source code.... the following change fixes the problem
for me, but I'm not sure if it's the right fix.

thanks
Lucas De Marchi
[0001-Do-not-change-argv-0-to-lt-progname.patch (text/x-patch, attachment)]

This bug report was last modified 12 years and 70 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.