-
Notifications
You must be signed in to change notification settings - Fork 14
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
[FR] Complain about unreadable portage configs #113
Comments
You can use |
I agree that missing I agree that there are many ways to fix my problem: change permission to |
Sorry, I didn't understand that. eix already tries to open the user configuration files, so the question is to differentiate between |
It might be that an open of a file fails, because it is a directory (which is valid in many cases); conversely, an opendir might fail because it is file (which is also valid in many cases). It might be possible to do some trickery with If you are willing to implement it so that it works for all calls of the methods and the implementation does not cause a severe additional latency, please make a PR. I do not consider the problem important enough to spend so much work on it. |
Please set correct permissions using |
And please also make sure that the dir can be listed and read by everyone.
|
It happens so that I had files under
/etc/portage/package.accept_keywords
with permissions of-rw------- root root
. While it wasn't problem for emerging stuff, eix appears to switch to theportage
user before reading them. As a result I got tons of confusing complains when, for example, runningeix-test-obsolete
.What I expect the tool to give me in such a situation would be a error message in output, something like:
so I would easily spot the issue and fix the permissions.
A quick glance into the code shows that this might originate from methods like
PortageUserConfig::readKeywords
, which callpushback_lines
to read the portage config files, but instead of providingerrtext
topushback_lines
just silently return.The text was updated successfully, but these errors were encountered: