It doesn't matter if it's a bug in the program or not.
"We don't break the userspace" --Linus Torvalds
Re:Handling argc==0 in the Linux kernel
by akira2501 on Friday February 04, 2022 @02:09PM
(#30211439)
I'm describing an issue with the article, not with the kernel development ideology. What I don't understand is why Corbett decided to write this up as an "assumption" rather than a "bug" which it clearly is.
Re:Handling argc==0 in the Linux kernel
by zerocrates on Friday February 04, 2022 @04:24PM
(#30213474)
It's both, what's the problem with what he wrote?
It's a bug that results from the developers incorrectly assuming that argc is always at least 1.
"Fixing this issue is a simple matter of making pkexec check that argc is at least one. But there are surely other programs out there containing similar assumptions."
That's _not_ an assumption. That's just a bug, in a setuid binary.