]> wimlib.net Git - wimlib/commit
rebuild_wim(): Fix possible problem with fd closing
authorEric Biggers <ebiggers3@gmail.com>
Mon, 12 Nov 2012 20:19:27 +0000 (14:19 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 12 Nov 2012 20:19:27 +0000 (14:19 -0600)
commit2900a982859da75d35e2a18a2e4f10b29a828226
tree8db7c70e993e51f906e72a97576a78d972c008cd
parentb6478f17e2e2450bcddba69214fc32bbf04002ce
rebuild_wim():  Fix possible problem with fd closing

Use list_for_each_entry_safe() instead of list_for_each_entry() when closing
staging file descriptors, since a lookup table entry may be deleted when its
last file descriptor is closed.
src/mount.c