projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c60f319
)
lib/repo: Restore tmpdir reusing out parameter
author
Dan Nicholson
<nicholson@endlessm.com>
Fri, 17 Nov 2017 16:55:43 +0000
(16:55 +0000)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Fri, 17 Nov 2017 18:25:22 +0000
(18:25 +0000)
This got lost in
d0b0578
and now the caller always thinks it got a new
tmpdir.
Closes: #1346
Approved by: cgwalters
src/libostree/ostree-repo.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-repo.c
b/src/libostree/ostree-repo.c
index 826958002d617b0940c3d8a5c7af4055ae0bad3b..c199882558a29ef5b2e0c79949ebbd67dfc3a2fc 100644
(file)
--- a/
src/libostree/ostree-repo.c
+++ b/
src/libostree/ostree-repo.c
@@
-4980,6
+4980,7
@@
_ostree_repo_allocate_tmpdir (int tmpdir_dfd,
/* We found an existing tmpdir which we managed to lock */
g_debug ("Reusing tmpdir %s", dent->d_name);
+ reusing_dir = TRUE;
ret_tmpdir.src_dfd = tmpdir_dfd;
ret_tmpdir.fd = glnx_steal_fd (&target_dfd);
ret_tmpdir.path = g_strdup (dent->d_name);