Handling argc==0 in the Linux kernel
I don't really understand the rationale for changing the Linux kernel at all here; yes, this is yet another footgun (tm), but this is purely a userspace problem. Especially given the examples regarding backwards compatibility given in the comments, I would expect a long-lasting userspace fix to come in the form of a new, better libc API. Not by prohibiting certain behaviour from the kernel-side of things.<p>That said, why is the obvious fix not simply "always populate argv[0] with pathname if called with NULL argv"?