RPM

Comment 1 for bug 651567

Revision history for this message
In , Jim (jim-redhat-bugs) wrote :

Description of problem:
if you try to restore an rpm to its original permissions using --setperms, rpm
exists with a chmod failure.

Version-Release number of selected component (if applicable):
rpm-4.4.2-47.el5.x86_64

How reproducible:
Always

Steps to Reproduce:
1. install package
2. run rpm --setperms packagename
3. watch errors

Actual results:
On each file, rpm throws a chmod error similar to the one below (for httpd)
chmod: invalid mode: `0100644'
Try `chmod --help' for more information.
chmod: invalid mode: `0100644'
Try `chmod --help' for more information.
chmod: invalid mode: `0100644'
Try `chmod --help' for more information.

Expected results:
rpm properly resets permissions to default state.

Additional info:

This is a very useful feature when attempting to repair a system, and should be
fixed.