For anybody wondering why I prefer #NetBSD over #Linux, compare the code for a small tool like whois(1):
Uncategorized
1
Posts
1
Posters
0
Views
-
For anybody wondering why I prefer #NetBSD over #Linux, compare the code for a small tool like whois(1):
NetBSD:
https://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/whois/whois.c?annotate=HEAD372 lines, easy to read
Linux:
https://github.com/rfc1036/whois/blob/next/whois.c1617 lines in the main program; unchecked malloc(3), misc buffer overflow opportunities, magic numbers, "/* This function has multiple memory leaks.*/", mixed spaces and tabs, another 2K of glue code, ...
KISS, man, KISS.
-
R relay@relay.infosec.exchange shared this topic