summaryrefslogtreecommitdiff
path: root/trans/fakeroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'trans/fakeroot.c')
-rw-r--r--trans/fakeroot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index 3756f489..920367d1 100644
--- a/trans/fakeroot.c
+++ b/trans/fakeroot.c
@@ -172,6 +172,9 @@ fakeroot_netfs_release_protid (void *cookie)
account for that fake reference. */
np->nn->faked |= FAKE_REFERENCE;
+ /* Clear the lock box as if the file was closed. */
+ fshelp_lock_init (&np->userlock);
+
/* We keep our node. */
goto out;
}