Description of problem: In rpm scriptlets, I rely on restorecon -i not giving error when file that I try to restorecon does not exist. On Fedora 12, this feature is broken, restorecon prints error message and returns 255. Version-Release number of selected component (if applicable): # rpm -qf /sbin/restorecon policycoreutils-2.0.74-17.fc12.x86_64 How reproducible: Deterministic. Steps to Reproduce: 1. Make sure /var/log/xxx does not exist. 2. Run # restorecon -rvi /var/log/xxx ; echo $? Actual results: # restorecon -rvi /var/log/xxx ; echo $? restorecon: lstat(/var/log/xxx) failed: No such file or directory 255 Expected results: # restorecon -rvi /var/log/xxx ; echo $?0 0 This is what I get with policycoreutils-1.33.12-14.6.el5 and policycoreutils-2.0.62-12.14.fc11.i586. Additional info:
Ths issue seems to be fixed with # rpm -qf /sbin/restorecon policycoreutils-2.0.78-10.fc12.i686
This issue seems to be fixed with # rpm -qf /sbin/restorecon policycoreutils-2.0.78-10.fc12.i686