Displaying 2 results from an estimated 2 matches for "f36e661".
Did you mean:
369661
2016 Dec 11
3
[PATCH 0/2] generic function for temporary path generation
Cosmetic change as suggested in this previous patch:
https://www.redhat.com/archives/libguestfs/2016-November/msg00111.html
Matteo Cafasso (2):
lib: generic function for temporary path generation
lib: use guestfs_int_make_temp_path to generate temporary files
src/drives.c | 5 ++---
src/file.c | 22 +++++++++-------------
src/guestfs-internal.h | 1 +
src/journal.c
2016 Dec 11
0
[PATCH 2/2] lib: use guestfs_int_make_temp_path to generate temporary files
...= guestfs_int_make_temp_path (g, "ls");
+ if (tmpfile == NULL)
goto err;
- tmpfile = safe_asprintf (g, "%s/ls%d", g->tmpdir, ++g->unique);
-
if (guestfs_ls0 (g, directory, tmpfile) == -1)
goto err;
diff --git a/src/journal.c b/src/journal.c
index 22b81de..f36e661 100644
--- a/src/journal.c
+++ b/src/journal.c
@@ -66,10 +66,10 @@ guestfs_impl_journal_get (guestfs_h *g)
size_t i, j, size;
uint64_t len;
- if (guestfs_int_lazy_make_tmpdir (g) == -1)
+ tmpfile = guestfs_int_make_temp_path (g, "journal");
+ if (tmpfile == NULL)
goto err;...