Conversation

Replying to
They have pervasive usage of alloca as a shortcut to work around their poor choice of tooling (C) for code that needs to do extensive string processing. Using alloca is even worse than VLAs since it's not block scoped but rather stays around for the whole life of the function.
1
1
Replying to and
They also make extensive and very questionable usage of other compiler extensions and strange idioms. They see what they're doing as using a very modern, clean dialect of C but they're using all kinds of hacks to reduce friction in very risky ways to work around the choice of C.
1
1
Replying to
Excellently phrased, I feel systemd does this with everything. I was looking at their code to avoid deleting root with their custom deletion utility. Since they don't do path normalization (because it's dubiously too expensive and too much code), they have a hard-coded...
1
1
Replying to and
... list of common cases they won't delete to avoid deleting root, but it fundamentally does nothing. You can still delete root or improperly delete other directories because it doesn't properly normalize paths (this may have changed in the last year since I checked).
1
1
Show replies