[gnome-boxes] Remove useless ensure_directory() call



commit 567ea806628afc8241b929e422b10b7c33687623
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Wed May 23 18:24:13 2012 +0200

    Remove useless ensure_directory() call
    
    Util::get_unattended_dir() calls ensure_directory, but this functions
    uses a system directory (DATADIR/PACKAGE_TARNAME/unattended) so
    it's unlikely that the user will have the permissions to create
    directories in this directory.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676658

 src/util.vala |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/util.vala b/src/util.vala
index d9b4428..e9d4bd6 100644
--- a/src/util.vala
+++ b/src/util.vala
@@ -29,8 +29,6 @@ namespace Boxes {
     public string get_unattended_dir (string? file_name = null) {
         var dir = Path.build_filename (get_pkgdata (), "unattended");
 
-        ensure_directory (dir);
-
         return Path.build_filename (dir, file_name);
     }
 



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