News for hackers. Stuff that matters.
Re:Why bother with argv[0]? by thayne on Wednesday September 04, 2024 @10:40AM (#41446358)
> it has been abused by external tools as a way to identify the program just because there was no other alternative.

There is an alternative, at least on linux: /proc/$pid/exe.

And if your question is "what executable is running" that is a better way to get it. But for a program like busybox, argv[0] is also important.

Re:Why bother with argv[0]? by account42 on Thursday September 05, 2024 @06:00AM (#41455147)
Pretty much any OS lets you examine which binaries have been mapped into the process adddress space meaning there are plenty alternatives.