News for hackers. Stuff that matters.
Re:Sshole by panzi on Thursday November 05, 2026 @11:11AM (#50380920)
Personally I think there was nothing wrong with returning NULL. "But if people don't check for it it crashes their programs!" Good! Let it crash loudly! Then they notice and fix the issue.
Re:Sshole by hnfong on Thursday November 05, 2026 @11:27AM (#50381118)
> Also I think it could have returned ":". Given the file format of /etc/shadow and /etc/passwd I don't think it's possible to have a : as a value for anything.

I wonder if somebody else would have thought the exact same thing in a different (non-/etc/*) context, and then you get the same effect in a more obscure manner.

Re:Sshole by panzi on Thursday November 05, 2026 @09:54PM (#50387579)
Indeed. Let's keep NULL.