suggested bsd-setproctitle.c

Ben Lindstrom mouring at pconline.com
Wed Nov 8 13:14:48 EST 2000



On Tue, 7 Nov 2000, Ben Lindstrom wrote:

> 
> On Tue, 7 Nov 2000, David Terrell wrote:
> 
> > On Mon, Nov 06, 2000 at 06:52:02AM +0100, Kevin Steves wrote:
> > > 
> > > I'll do this patch unless someone points out what it will break :)
> > 
> > It breaks the actual functionality of __progname, which is roughly
> > equivelent to basename(argv[0]).
> > 
> Hmm...It's technically broken as it is.
> 
> Most of the patch is right.  Just the section for ssh-add, sshd, ssh, scp,
> ssh-agent, etc are wrong.
> 
> Is this much more to everyone's liking?
> 
> It moves the assignment of the value of __progname to the main() and only
> use if it HAVE__PROGNAME is fault..
> 
> Ermm.. I just noticed I missed scp.c =)  Which I'm fixing now.
> 
Bah...  Someone should go put together a patch to make main(..) defines
the same.=)

There are a few problems more with that patch.. argv[0] vs av[0] ...
<sigh>

Nice thing about having old UNIX boxes around..they catch stupid mistakes.
=)






More information about the openssh-unix-dev mailing list