projects
/
services
/
createrepo_c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a4d260
)
createrepo_shared: Avoid double removal of the same directory by the failure_exit_cle...
author
Tomas Mlcoch
<tmlcoch@redhat.com>
Wed, 1 Apr 2015 10:59:09 +0000
(12:59 +0200)
committer
Tomas Mlcoch
<tmlcoch@redhat.com>
Wed, 1 Apr 2015 10:59:09 +0000
(12:59 +0200)
src/createrepo_shared.c
patch
|
blob
|
history
diff --git
a/src/createrepo_shared.c
b/src/createrepo_shared.c
index
fc4a03d
..
ea389bf
100644
(file)
--- a/
src/createrepo_shared.c
+++ b/
src/createrepo_shared.c
@@
-81,7
+81,10
@@
cr_set_cleanup_handler(const char *lock_dir,
// Set global variables
global_lock_dir = g_strdup(lock_dir);
- global_tmp_out_repo = g_strdup(tmp_out_repo);
+ if (g_strcmp0(lock_dir, tmp_out_repo))
+ global_tmp_out_repo = g_strdup(tmp_out_repo);
+ else
+ global_tmp_out_repo = NULL;
// Register on exit cleanup function
if (on_exit(failure_exit_cleanup, NULL))