Oh wow, a security disaster. You know, you can temporarily escalate your privileges if you need to modify Program Files, right? It's just one UAC prompt away.
I misremembered the whole thing. It was still related to cleaning up after a failure, but there was only one resource I had to deal with. That's how it looks like:
sqlite3 *db;
int r;
r = sqlite3_open("./data.db", &db);
if (r) {
std::cerr << "Can't open the database: " << sqlite3_errmsg(db) << std::endl;
return r;
}
r = sqlite3_exec(db, "CREATE TABLE IF NOT EXISTS foo(...);", nullptr, nullptr, nullptr);
if (r != SQLITE_OK) {
std::cerr << "Can't create a table called foo: " << sqlite3_errmsg(db) << std::endl;
goto out;
}
// a few more sqlite3_exec calls;
// some sqlite3_prepare_v2 calls combined with sqlite3_bind_* and sqlite3_step calls
// for repeated queries.
out:
sqlite3_close(db);
return r;
You’re describing Secure Boot.
Secure Boot is literally configurable. You can create your own key and sign whatever you want with it. See sbctl.
I mean, in C too.
I used it when I wrote some throwaway C++ code working with SQLite. Since it had no RAII (and I had no intention of writing my own wrapper), I had to manually cleanup multiple resources somehow. If at least one resource failed to initialize, I had to deinitialize the ones that didn't fail. It was either goto or a bunch of flags to track what is initialized. goto looked more elegant.
May I suggest avoiding recursive functions where possible? They are usually the ones overflowing your stack, duh.
90% of the world population
Heh, Muricans just can't stop overestimating their importance.
Ironic that you need a Google smartphone, isn't it?
rabid commies
You've chosen the worst possible instance, LMAO.
Fun fact: the "Enshittification" article on Wikipedia has Reddit among the examples.
First time I'm hearing of the CQS. Wow, just wow. Dystopian shit.
New account experience on Reddit in 2025:
- Create an account;
- Post something on a subreddit that has AutoMod configured to instantly remove posts/comments from new accounts, accounts with low karma or accounts with low CQS;
- Get a site-wide shadowban because your first contribution was removed;
- If you're unaware of shadowbans, keep using the site, leaving comments, thinking nobody replies to you because you're not that interesting;
- If you're aware of them, keep trying to appeal with zero effect.
Fuck Steve Huffman and fuck his enshittified site.
Don't give a shit about live service multiplayer PvP-games infested with FOMO battle passes, I'm afraid.
I'm quite content with co-op and singleplayer games, thanks for worrying though.
It does not support kernel level anti-cheat!
Huh, thought you were mentioning only the cons.