Summary: | app-portage/gentoolkit-0.3.0.8-r2: 'equery check sudo' crashes when running as non root and trying to check only root readable file | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Nikoli <nikoli> |
Component: | Tools | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arthur |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | gentoolkit-0.3.0.9-equery-494134.patch |
Description
Nikoli
2013-12-13 09:49:21 UTC
Created attachment 391810 [details, diff]
gentoolkit-0.3.0.9-equery-494134.patch
A year later and I still hit the issue in gentoolkit-0.3.0.9-r2.
A quick look into the source reveals that there is actually code to handle the case, but it expects the wrong exception type. The attached patch fixes that and also avoids a crash for other errors.
Thank you, Patch applied, testing. will be in the next release. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=c1c66b84d3e14b887b7b460111664e62238172fb commit c1c66b84d3e14b887b7b460111664e62238172fb Author: Alexander Miller <alex.miller@gmx.de> AuthorDate: 2022-07-10 15:55:25 +0000 Commit: Brian Dolbec <dolsen@gentoo.org> CommitDate: 2022-07-10 15:55:25 +0000 equery check: Fix exception handling for Insufficient permissions A quick look into the source reveals that there is actually code to handle the case, but it expects the wrong exception type. This patch fixes that and also avoids a crash for other errors. Bug: https://bugs.gentoo.org/494134 Signed-off-by: Brian Dolbec <dolsen@gentoo.org> pym/gentoolkit/equery/check.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) |