Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 11 Aug 2012 18:35:12 +0200
From: Daniel Cegiełka <daniel.cegielka@...il.com>
To: musl@...ts.openwall.com
Subject: Re: Priorities for next release?

>> argv[0]
>
> I meant program_invocation_name or whatever ugly thing glibc calls it.
> Of course if the goal is to make BSD programs happy, that won't really
> help. I really wish somebody would just fix these programs to save
> argv[0] themselves if they need it (or to hard-code their own names as
> a string literal...) rather than keeping around the historical
> practice of poking at implementation internals of the original libc
> they used..

That's what I do now (patches for __progname). Unfortunately some
linux distributions forcing __progname, even Owl:

in Owl's popa3d we have a #ifdef, which really helps.

#ifdef HAVE_PROGNAME
extern char *__progname;
#define progname __progname

http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/popa3d/popa3d/startup.c?rev=1.4;content-type=text%2Fplain

but for Owl's msulogin we need a patch for musl:

http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/msulogin/msulogin/sulogin.c?rev=1.4;content-type=text%2Fplain

Daniel

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.