From 80aca082350f800e542939b1b75027b99bbe9e77 Mon Sep 17 00:00:00 2001 From: ewt Date: Thu, 16 Jan 1997 16:18:48 +0000 Subject: [PATCH] 1) fixed bug in rpmVersionCompare() with segv'd 2) fixed silly type CVS patchset: 1285 CVS date: 1997/01/16 16:18:48 --- lib/install.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/install.c b/lib/install.c index debee62..db3d90f 100644 --- a/lib/install.c +++ b/lib/install.c @@ -1383,7 +1383,7 @@ static int installSources(Header h, char * rootdir, int fd, } if (access(specDir, W_OK)) { - rpmError(RPMERR_CREATE, "cannot write to %s", sourceDir); + rpmError(RPMERR_CREATE, "cannot write to %s", specDir); return 2; } @@ -1516,14 +1516,14 @@ int rpmVersionCompare(Header first, Header second) { return rpmvercmp(one, two); headerGetEntry(first, RPMTAG_VERSION, NULL, (void **) &one, NULL); - headerGetEntry(second, RPMTAG_VERSION, NULL, (void **) &one, NULL); + headerGetEntry(second, RPMTAG_VERSION, NULL, (void **) &two, NULL); rc = rpmvercmp(one, two); if (rc) return rc; headerGetEntry(first, RPMTAG_RELEASE, NULL, (void **) &one, NULL); - headerGetEntry(second, RPMTAG_RELEASE, NULL, (void **) &one, NULL); + headerGetEntry(second, RPMTAG_RELEASE, NULL, (void **) &two, NULL); return rpmvercmp(one, two); } -- 2.7.4