~krenshaw/ubuntu/+source/command-not-found:focal-lp1953610

Last commit made on 2022-02-14
Get this branch:
git clone -b focal-lp1953610 https://git.launchpad.net/~krenshaw/ubuntu/+source/command-not-found
Only Kellen Renshaw can upload to this branch. If you are Kellen Renshaw please log in for upload directions.

Branch merges

Branch information

Name:
focal-lp1953610
Repository:
lp:~krenshaw/ubuntu/+source/command-not-found

Recent commits

a7e9755... by Kellen Renshaw

Cherry-pick of cnf-update-db fixes from 22.04

 Fixes: LP: #1953610

Signed-off-by: Kellen Renshaw <email address hidden>

21d594e... by Arnaud Rebillout <email address hidden>

Add test to make sure that the database is world-readable

b431b0c... by Arnaud Rebillout <email address hidden>

cnf-update-db: Creates a world-readable database

The database is created by root (sudo update-command-not-found), but then it is
used by normal users, so it needs to be world readable. However in the current
state, this is not guaranteed, it depends on the umask of the user running
update-command-not-found.

With this commit we make it sure that the db is world-readable by setting umask
to 0022.

Note that the issue was already reported back in 2009, and fixed in version
`0.2.38-1` (Debian jessie), cf. #522450. But then the fix was lost when the
package was updated to version `18.04.5-1` (Debian buster).

This should fix #943989 #985833 #986160 #986292 #986321 #983651 #986461

Closes: #986461

6e527ee... by Arnaud Rebillout <email address hidden>

cnf: Bail out early if the database is not readable

Due to recent bug #986461, users might be stuck with a non-readable database.
In such case we want to bail out early, so that cnf can suggest that users run
'apt update', which will solve their issue.

ed733f0... by Julian Andres Klode

20.04.5 (patches unapplied)

Imported using git-ubuntu import.

b6a297b... by Lukas Märdian

20.04.4 (patches unapplied)

Imported using git-ubuntu import.

da9f445... by Brian Murray

20.04.2 (patches unapplied)

Imported using git-ubuntu import.

8271184... by Dimitri John Ledkov

20.04.1 (patches unapplied)

Imported using git-ubuntu import.

b5f8b96... by Dimitri John Ledkov

20.04.0 (patches unapplied)

Imported using git-ubuntu import.

adc572c... by Julian Andres Klode

19.10.0 (patches unapplied)

Imported using git-ubuntu import.