4 ms·
Isn't Linux severely breaking the userspace with this change? What about programs that expect argc to be 0 or argv or argv[0] to be NULL?
by jesprenj 3y ago
Isn't Linux severely breaking the userspace with this change? What about programs that expect argc to be 0 or argv or argv[0] to be NULL?
- JdeBP 3y agoThey haven't been portable to other operating systems, and have been wrong, for at least 18 years at this point. They will have hit EFAULT or EINVAL on other operating systems. You can see the commit where Matthew Dillon introduced EFAULT and an argv[0] bodge into DragonFly BSD in 2005, for example, on this very page.
- ilyt 3y agoWell, when every possible change would cause something to be wrong you have to pick your poison.