[lkml]   [2003]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Changing argv[0] under Linux.
    Hi Bob :)

> Or you can copy your all your args and env to a temporary place and
> then re-build your args and env with the new argv[0] in it's place.

Yes, this is a good solution, too. The problem with all solutions
is that they involve a good bunch of code for a thing that doesn't
deserve it ;))

Moreover, since I must preserve the environment and I'm pretty
sure that there is no arg except argv[0], I end up with the same
problem. The user may install this bit of crap under name '/i', for
example, and then I have only two characters for the new name :((

Thanks for your help :)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.071 / U:3.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site