-
Notifications
You must be signed in to change notification settings - Fork 124
Error if both lsb_release n os_release are missing #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error if both lsb_release n os_release are missing #431
Conversation
This change is probably fine, but it introduces a time-of-check-time-of-use bug. My suggestion would be to replace try{
GLib.FileUtils.get_contents(file_path, out dist_file_cont);
}
catch (Error e) {
return null;
} This should remove all logging, but avoid the time-of-check-time-of-use problem. |
What version are you using? Is this necessary since 76bd8ee? |
Yes, let's not introduce bugs. Let me make the change shortly. |
79042b3
to
330f25d
Compare
Do not introduce a Time-of-Check to Time-of-Use (TOCTOU) bug.
I on Arch Linux using extra/timeshift 25.07.4-1. I would expect it to still be the case since the function is still present and other functions still call it. |
Just a quick note: Under EndeavourOS, it is now a symlink. And a different name. So I have the same error. :)
|
What different name? timeshift checks But having the info that some distros put the files at a different folder is good. I guess timeshift should check |
Sorry, bad wording.. I mean primary the symlink to /usr/lib/ |
Fixes #430