Eg when running verification as non-root, it can lead to confusing results
until you realize you didn't have permission to verify the file.
Patch originally from OpenSuSE, slightly modified.
(fileAttrs & RPMFILE_README) ? 'r' : ' '),
rpmfiFN(fi));
te += strlen(te);
+ if ((verifyResult & RPMVERIFY_LSTATFAIL) != 0 &&
+ errno != ENOENT) {
+ sprintf(te, " (%s)", strerror(errno));
+ te += strlen(te);
+ }
ec = rc;
}
} else if (verifyResult || rpmIsVerbose()) {