diff options
author | Guillem Jover <guillem@debian.org> | 2011-03-13 19:53:28 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2011-03-14 07:21:56 +0100 |
commit | addcf0717e7a6076f40a57d8aa9a0164868d46ba (patch) | |
tree | 2deaccb834f5cf9e0800417a20e0a3ea10c89a12 /dselect/method.cc | |
parent | 8ecd3414ebcf0a81a4f23b671c134729dc600a3a (diff) | |
download | dpkg-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.cc | 2 |
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); |