Typically, I prefer to wrap the call to free() in an if:
if (str != NULL)
There might be some obscure malloc implementation that doesn't NOP on free(NULL). I've dealt with other people's code long enough to know making assumptions can cause trouble.
15 minutes of using Debian and I've just been reminded of how complex package management is.
Prepare for a few other ranting toots, I haven't even touched systemd yet.
i want a girl with a short skirt and a looooooooong... weekend
On the birdsite everyone is going mad with this "by 35 you should have done X" thing and I can't help but giggle at some of the stuff I did as a child simply because I had access…
Aged 6 and a bit I crashed the main university server turning off a disk pack because, well, it was noisy and I was playing Lego in the machine room ¯\_(ツ)_/¯
The "rm -rf /" I did, on purpose, "to see what would happen" on my home Xenix SysV/386 system around 13-14…
So much other fun stuff before I even turned 18!
but why shouldn't i set up a tftp server at home for pxe boot goodness
Microsoft Flight Simulator 3.0 running on Olivetti Quaderno PT-XT-20 from 1992
So the Amazon Workspaces client for Windows wants me to install an unknown, random CA to my root CA trust store.
TIL: "No route to host" on Linux does not necessarily mean "no route to host".
If a firewall rejects a packet, it usually sends an ICMP port unreachable, which is correctly interpreted. The proper behaviour defined in RFC 1812 would be ICMP Admin Prohibited (Type 3 Code 13), but the Linux kernel converts that to EHOSTUNREACH, which is interpreted by libc as "No route to host".
Therefore - check the actual traffic using tcpdump/Wireshark. No route to host, well... doesn't mean no route to host.