When using -rpm-use-file-permissions:
Strip leading slash from file pathname before call to stat.
Otherwise the correct file permissions will not be calculated.