bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

set_program_name behavior


From: Sergey Poznyakoff
Subject: set_program_name behavior
Date: Wed, 14 Jan 2009 17:14:20 +0200

Hello,

The behavior of set_program_name differs depending on whether argv[0]
refers to a libtool script (*/.libs/lt-*) or to a usual binary. In the first
case, the function strips off all directory components and the `lt-'
prefix, and assigns the result to program_name. In the second case,
however, it does nothing and assings unchanged argv[0] to
program_name. Is this intentional? It would be logical if it removed
directory components in both cases.

Regards,
Sergey




reply via email to

[Prev in Thread] Current Thread [Next in Thread]