From e7b0d96900fb16a707776f95052f924fc4241c17 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 22 Apr 2010 12:23:24 +0300 Subject: Make transaction lock path per-transaction - Although it doesn't really happen in practise, rpm's API permits several transactions with possibly differing roots within process lifetime. Previously the lock path was calculated just once globally so we could easily be locking in a completely wrong place (eg locking in a previously accessed chroot when system rpmdb should be transaction-locked) --- lib/rpmts_internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rpmts_internal.h') diff --git a/lib/rpmts_internal.h b/lib/rpmts_internal.h index c42e2a131..551cdd76b 100644 --- a/lib/rpmts_internal.h +++ b/lib/rpmts_internal.h @@ -52,6 +52,7 @@ struct rpmts_s { int chrootDone; /*!< Has chroot(2) been been done? */ char * rootDir; /*!< Path to top of install tree. */ char * currDir; /*!< Current working directory. */ + char * lockPath; /*!< Transaction lock path */ FD_t scriptFd; /*!< Scriptlet stdout/stderr. */ rpm_tid_t tid; /*!< Transaction id. */ -- cgit v1.2.3