Displaying 3 results from an estimated 3 matches for "f43e64b10".
2017 Sep 20
1
Re: [PATCH 6/6] lib: Use guestfs_int_make_temp_path in a few more places.
...t;cmderr", "txt");
> + if (!cmd->error_file)
> + goto error;
> errfd = open (cmd->error_file,
> O_WRONLY|O_CREAT|O_NOCTTY|O_TRUNC|O_CLOEXEC, 0600);
> if (errfd == -1) {
> diff --git a/lib/drives.c b/lib/drives.c
> index 117c8bf85..f43e64b10 100644
> --- a/lib/drives.c
> +++ b/lib/drives.c
> @@ -989,7 +989,9 @@ guestfs_impl_add_drive_scratch (guestfs_h *g, int64_t size,
> */
> if (guestfs_int_lazy_make_tmpdir (g) == -1)
> return -1;
> - filename = safe_asprintf (g, "%s/scratch.%d", g->tmpd...
2017 Sep 19
0
[PATCH 6/6] lib: Use guestfs_int_make_temp_path in a few more places.
...int_make_temp_path (cmd->g, "cmderr", "txt");
+ if (!cmd->error_file)
+ goto error;
errfd = open (cmd->error_file,
O_WRONLY|O_CREAT|O_NOCTTY|O_TRUNC|O_CLOEXEC, 0600);
if (errfd == -1) {
diff --git a/lib/drives.c b/lib/drives.c
index 117c8bf85..f43e64b10 100644
--- a/lib/drives.c
+++ b/lib/drives.c
@@ -989,7 +989,9 @@ guestfs_impl_add_drive_scratch (guestfs_h *g, int64_t size,
*/
if (guestfs_int_lazy_make_tmpdir (g) == -1)
return -1;
- filename = safe_asprintf (g, "%s/scratch.%d", g->tmpdir, ++g->unique);
+ filename =...
2017 Sep 19
7
[PATCH 0/6] Various clean ups in lib/
Miscellaneous small cleanups in lib/ directory.
Rich.