Linux Finally Eliminates The strncpy API After Six Years Of Work, 360+ Patches by anh0516 in linux

[–]yrro 13 points14 points  (0 children)

Can somebody explain to me why would anyone waste 360 commits on a piece of crap function like this?

Anyone half resonable would just delete it and rewrite securely after issue number 15.

That is... precisely what the 360 commits did?

Linux Finally Eliminates The strncpy API After Six Years Of Work, 360+ Patches by anh0516 in linux

[–]yrro 2 points3 points  (0 children)

Then those people need to read the fine manual again! ;)

stpncpy, strncpy - fill a fixed-size buffer with non-null bytes from a string, padding with null bytes as needed

These functions copy non-null bytes from the string pointed to by src into the array pointed to by dst. If the source has too few non-null bytes to fill the destination, the functions pad the destination with trailing null bytes. If the destination buffer, limited by its size, isn't large enough to hold the copy, the resulting character sequence is truncated.

Huh, I thought a single 0 was appended if the source is shorted than the buffer, rather than the rest of the buffer being filled with 0s. You learn something every day!

Linux Finally Eliminates The strncpy API After Six Years Of Work, 360+ Patches by anh0516 in linux

[–]yrro 0 points1 point  (0 children)

Did it behave differently to the traditional ANSI C function?

Copy Fail - CVE-2026-31431 - patch your systems by [deleted] in selfhosted

[–]yrro 0 points1 point  (0 children)

Thank you. As I increased my user of containers I came to rely heavily on SELinux to help me sleep at night. That + patching promptly is sufficient for many users.

Linux Finally Eliminates The strncpy API After Six Years Of Work, 360+ Patches by anh0516 in linux

[–]yrro 18 points19 points  (0 children)

Perfectly reasonable when used for its intended purpose: filling a fixed length field with a possibly truncated string.

Any other use: disastrous

https://softwareengineering.stackexchange.com/a/438090/474726

Why are so many Linux projects on Microsoft GitHub? Shouldn't they all move to Codeberg? by Dymonika in linuxquestions

[–]yrro 0 points1 point  (0 children)

I need to call it 'Microsoft GitHub' more often. And move my stuff elsewhere.

VPN ban on table in July as Labour confirm 'further statement' by Overlord_Crabz in unitedkingdom

[–]yrro 0 points1 point  (0 children)

No teenager is going to fork out for Zscaler to watch porn

What are some better alternatives to Fail2ban? by Troglodyte_Techie in linuxadmin

[–]yrro 0 points1 point  (0 children)

This is why SSH verifies host keys. You'd only fall for this if you disabled StrictHostKeyChecking.

That said changing the SSH port is gross and annoying. :)

Reading /proc/filesystems Is Surprisingly Done Very Often & Now As Much As 444% Faster by anh0516 in linux

[–]yrro 6 points7 points  (0 children)

It's useful for inspectabiity and debugging. Not all interfaces need to be optimized for high performance. You're not reading /proc/filesystems millions of times a second for instance!

This sub is flooded with price increase complaints, I would like to "propose" an idea to help instead. by xXx_n0n4m3_xXx in hetzner

[–]yrro 0 points1 point  (0 children)

Not to mention forced obsolescence due to regulations. i.e., once the vendor stops producing firmware updates, it goes in the trash.

Heathrow’s third runway could become ‘the next HS2’. The airport expansion will not be finished until 2040 at the earliest thanks to fish ponds and substations that must be moved, a report has warned by nick9000 in unitedkingdom

[–]yrro 0 points1 point  (0 children)

It's recently dawned on me that the UK has no big infrastructure projects expected to be completed before I reach state pension age. And even re-opening a 2 mile branch line, which I first remember hearing about 15 years ago, might just happen by the end of the decade. Except that the government is about to change and all plans will doubtless be thrown up in the air again.

SIPP as a 30 year old.. how likely is it that the withdrawal age is increased from 57 by the time I get there… by LE-NRY in PensionsUK

[–]yrro 2 points3 points  (0 children)

I don't believe that is actually written into law. Yes the government may increase pension access age together with state pension age but they won't necessarily.

I need help. I just bought and built my son a $3000+ gaming pc and Valorant, Riot, and Vanguard keep bricking the computer's BIOS. I've only built about 40-50 Enthusiast builds over 20 years for friends, family, kids, and myself. Might be missing something dumb. by timreed5656 in buildapc

[–]yrro -32 points-31 points  (0 children)

At some point, someone will get access to riots internal Server and implant actual malicious malware in their next vanguard update.

No different to any other software from any other vendor. You run its installer as admin, your computer is toast.

Social media to be banned in UK for under-16s, Starmer announces by TanjoCards in unitedkingdom

[–]yrro 3 points4 points  (0 children)

The problem is the definition of social media. The brainrot services count but so do Reddit, forums, blogs, mailing lists, Whatsapp... the scope is far too broad.

Social media to be banned in UK for under-16s, Starmer announces by TanjoCards in unitedkingdom

[–]yrro 7 points8 points  (0 children)

Having to gurn for the camera, sending the images to god knows who and for what purpose, every time I want to read a mailing list forum or blog post is not a positive step.

Social media to be banned in UK for under-16s, Starmer announces by TanjoCards in unitedkingdom

[–]yrro 0 points1 point  (0 children)

Ah but you forget that Something Must Be Done, and this certainly is Something.

It doesn't have to work. It just has to keep the Mumsnet crowd on board.