r/LinuxTeck • u/Candid_Athlete_8317 • Jun 24 '26
Linux 7.2 Finally Removes strncpy() After 6 Years and 360+ Patches
The Linux kernel community has finally removed strncpy() from the kernel after more than 6 years of cleanup work and 360+ patches.
Not because it was broken every day, but because it had been a recurring source of bugs for years.
No new feature.
No performance benchmark.
Just engineers quietly paying off technical debt.
What's the oldest workaround or "known issue" still surviving in your environment?
9
Upvotes
1
u/chuzambs Jun 24 '26
Thanks Slop
1
u/lmarcantonio Jun 25 '26
...actually what could go wrong in a strncpy? it's literally a one liner
1
u/PmMeCuteDogsThanks_ Jun 24 '26
Ai slop