2006-12-19 00:17:44 +01:00
|
|
|
Tell user the reason why the lstat failed in a verify operation.
|
|
|
|
|
2007-05-25 17:22:10 +02:00
|
|
|
Index: lib/verify.c
|
|
|
|
===================================================================
|
|
|
|
--- lib/verify.c.orig
|
|
|
|
+++ lib/verify.c
|
2006-12-19 00:17:44 +01:00
|
|
|
@@ -327,6 +327,10 @@ static int verifyHeader(QVA_t qva, const
|
|
|
|
(fileAttrs & RPMFILE_README) ? 'r' : ' '),
|
|
|
|
rpmfiFN(fi));
|
|
|
|
te += strlen(te);
|
2007-05-25 17:22:10 +02:00
|
|
|
+ if ((verifyResult & RPMVERIFY_LSTATFAIL) != 0 && errno != ENOENT) {
|
2006-12-19 00:17:44 +01:00
|
|
|
+ sprintf(te, " (%s)", strerror(errno));
|
|
|
|
+ te += strlen(te);
|
|
|
|
+ }
|
|
|
|
ec = rc;
|
|
|
|
}
|
|
|
|
} else if (verifyResult || rpmIsVerbose()) {
|