summaryrefslogtreecommitdiff
path: root/dselect/method.cc
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-03-13 19:53:28 +0100
committerGuillem Jover <guillem@debian.org>2011-03-14 07:21:56 +0100
commitaddcf0717e7a6076f40a57d8aa9a0164868d46ba (patch)
tree2deaccb834f5cf9e0800417a20e0a3ea10c89a12 /dselect/method.cc
parent8ecd3414ebcf0a81a4f23b671c134729dc600a3a (diff)
downloaddpkg-addcf0717e7a6076f40a57d8aa9a0164868d46ba.tar.gz
Use dpkg_db_get_path() instead of using m_asprintf() and admindir
Diffstat (limited to 'dselect/method.cc')
-rw-r--r--dselect/method.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dselect/method.cc b/dselect/method.cc
index f0e2fe7af..bfff741b4 100644
--- a/dselect/method.cc
+++ b/dselect/method.cc
@@ -106,7 +106,7 @@ static enum urqresult lockmethod(void) {
struct flock fl;
if (methodlockfile == NULL)
- m_asprintf(&methodlockfile, "%s/%s", admindir, METHLOCKFILE);
+ methodlockfile = dpkg_db_get_path(METHLOCKFILE);
if (methlockfd == -1) {
methlockfd= open(methodlockfile, O_RDWR|O_CREAT|O_TRUNC, 0660);