Explorar o código

libdpkg: Reset dblockfd on modstatdb_unlock()

This will allow locking again the database after having previously
unlocked it.
Guillem Jover %!s(int64=15) %!d(string=hai) anos
pai
achega
8619e6d314
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      lib/dpkg/dbmodify.c

+ 2 - 0
lib/dpkg/dbmodify.c

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