[ostree: 68/70] static-delta: Put temp files in /var/tmp



commit a08b7765b7b909f96ff13b55d2e3e1f0c9c0807c
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Apr 14 20:55:28 2016 +0200

    static-delta: Put temp files in /var/tmp
    
    We may not have write permissions in the current directory.
    
    Closes: #259
    Approved by: cgwalters

 .../ostree-repo-static-delta-compilation.c         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-repo-static-delta-compilation.c 
b/src/libostree/ostree-repo-static-delta-compilation.c
index df5dc19..b398923 100644
--- a/src/libostree/ostree-repo-static-delta-compilation.c
+++ b/src/libostree/ostree-repo-static-delta-compilation.c
@@ -455,7 +455,7 @@ get_unpacked_unlinked_content (OstreeRepo       *repo,
                                GError          **error)
 {
   gboolean ret = FALSE;
-  g_autofree char *tmpname = g_strdup ("tmpostree-deltaobj-XXXXXX");
+  g_autofree char *tmpname = g_strdup ("/var/tmp/tmpostree-deltaobj-XXXXXX");
   glnx_fd_close int fd = -1;
   g_autoptr(GBytes) ret_content = NULL;
   g_autoptr(GInputStream) istream = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]