RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Ralf S. Engelschall
Root: /v/rpm/cvs Email: rse@rpm5.org
Module: rpm Date: 29-Jun-2007 14:38:49
Branch: HEAD Handle: 2007062913384900
Modified files:
rpm CHANGES
rpm/lib verify.c
Log:
Add "errno" information to be more informative in error message when
lstat(2) on verification fails.
Submitted by: OpenSUSE via Panu Matilainen from rpm.org
Obtained from: http://hg.rpm.org/rpm?cs=45b8d8cfd07e
Summary:
Revision Changes Path
1.1416 +1 -0 rpm/CHANGES
2.166 +4 -0 rpm/lib/verify.c
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/CHANGES
============================================================================
$ cvs diff -u -r1.1415 -r1.1416 CHANGES
--- rpm/CHANGES 29 Jun 2007 12:28:40 -0000 1.1415
+++ rpm/CHANGES 29 Jun 2007 12:38:49 -0000 1.1416
@@ -1,4 +1,5 @@
4.5 -> 5.0:
+ - rse: add "errno" information to be more informative in error message when lstat(2) on verification fails.
- rse: correctly restore SIGILL signal handler in machine detection code.
- pmatilaj: nuke antique Red Hat Linux "reference" "baddeps" list (in lib/depends.c)
- rse: allow one to explicitly select the RPM DB API with --with-dbapi={db,sqlite}
@@ .
patch -p0 <<'@@ .'
Index: rpm/lib/verify.c
============================================================================
$ cvs diff -u -r2.165 -r2.166 verify.c
--- rpm/lib/verify.c 21 Jun 2007 11:17:51 -0000 2.165
+++ rpm/lib/verify.c 29 Jun 2007 12:38:49 -0000 2.166
@@ -311,6 +311,10 @@
(fflags & 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()) {
@@ .
Received on Fri Jun 29 14:38:49 2007