Red Hat Bugzilla – Bug 1071212
dnf doesn't skip unreadable repository files
Last modified: 2014-09-30 19:42:08 EDT
Description of problem:
If there is a .repo file with wrong permissions, dnf exits instead of skipping it when reading .repo files.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. make some .repo file readable only for the owner (root)
2. run 'dnf search foo' as a user different than root
dnf fails to search for the package
dnf searches for the package and just prints a warning
[vpodzime@vpodzime ~]$ yum search anaconda-addon
Loaded plugins: auto-update-debuginfo, langpacks, refresh-packagekit
Skipping unreadable repository '///etc/yum.repos.d/SpiderOak-stable.repo'
======================================================= N/S matched: anaconda-addon ========================================================
oscap-anaconda-addon.noarch : Anaconda addon integrating OpenSCAP to the installation process
Name and summary matches only, use "search all" for everything.
[vpodzime@vpodzime ~]$ dnf search anaconda-addon
Error: Error accessing file for config file://///etc/yum.repos.d/SpiderOak-stable.repo
Hello, thank you for the report. We will take a look at it.
related bug 809598.
Both behaviors are controversial but the skipping+warning maybe a bit less so let's go with that for now.
Fixed upstream by beea722.
dnf-0.4.18-1.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.4.18-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-0.4.19-1.fc20 has been submitted as an update for Fedora 20.
dnf-0.4.19-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.