]> err.no Git - dpkg/commitdiff
libdpkg: Use TRIGGERSLOCKFILE instead of literal string
authorGuillem Jover <guillem@debian.org>
Tue, 1 Apr 2008 00:23:58 +0000 (03:23 +0300)
committerGuillem Jover <guillem@debian.org>
Tue, 1 Apr 2008 03:32:18 +0000 (06:32 +0300)
ChangeLog
lib/trigdeferred.l

index 3e4c08c2a4d1f3fc8d186ef45c93e52c47fe99cc..179f54829f392843286cd96e2164efc1d77769c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-01  Guillem Jover  <guillem@debian.org>
+
+       * lib/trigdeferred.l (trigdef_update_start): Use TRIGGERSLOCKFILE
+       instead of literal string.
+
 2008-04-01  Guillem Jover  <guillem@debian.org>
 
        * src/enquiry.c (badstatinfos): Fix typos (processesing -> processing).
index a7bcb1171ce0b877a72d4f304a7ce1690b7c3177..a2f63e6cc838694cb41f151831ff535bf7f2cf8b 100644 (file)
@@ -104,7 +104,7 @@ trigdef_update_start(enum trigdef_updateflags uf, const char *admindir)
        int r;
 
        if (uf & tduf_write) {
-               constructfn(&fn, admindir, "Lock");
+               constructfn(&fn, admindir, TRIGGERSLOCKFILE);
                if (lock_fd == -1) {
                        lock_fd = open(fn.buf, O_RDWR | O_CREAT | O_TRUNC, 0600);
                        if (lock_fd == -1) {