Преглед изворни кода

libdpkg: Reset dblockfd on modstatdb_unlock()

This will allow locking again the database after having previously
unlocked it.
Guillem Jover пре 15 година
родитељ
комит
8619e6d314
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      lib/dpkg/dbmodify.c

+ 2 - 0
lib/dpkg/dbmodify.c

@@ -229,6 +229,8 @@ modstatdb_unlock(void)
 {
 {
   /* Unlock. */
   /* Unlock. */
   pop_cleanup(ehflag_normaltidy);
   pop_cleanup(ehflag_normaltidy);
+
+  dblockfd = -1;
 }
 }
 
 
 enum modstatdb_rw
 enum modstatdb_rw