[gnome-settings-daemon] housekeeping: Ignore return value from mkdir() calls



commit 968523c0dfee40beb3ed88d067902c9b4ee303a6
Author: Philip Withnall <withnall endlessm com>
Date:   Mon Mar 27 12:13:07 2017 +0100

    housekeeping: Ignore return value from mkdir() calls
    
    We don’t care whether they succeed, since there’s nothing we can do if
    they fail. Notifying the user is fairly pointless, since not having the
    directories around doesn’t result in a major loss of functionality.
    
    Coverity ID: 1418240
    
    https://bugzilla.gnome.org/show_bug.cgi?id=780587

 plugins/housekeeping/gsd-housekeeping-manager.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/housekeeping/gsd-housekeeping-manager.c b/plugins/housekeeping/gsd-housekeeping-manager.c
index 7a837cf..6d49538 100644
--- a/plugins/housekeeping/gsd-housekeeping-manager.c
+++ b/plugins/housekeeping/gsd-housekeeping-manager.c
@@ -379,12 +379,12 @@ gsd_housekeeping_manager_start (GsdHousekeepingManager *manager,
         gnome_settings_profile_start (NULL);
 
         /* Create ~/.local/ as early as possible */
-        g_mkdir_with_parents(g_get_user_data_dir (), 0700);
+        (void) g_mkdir_with_parents(g_get_user_data_dir (), 0700);
 
         /* Create ~/.local/share/applications/, see
          * https://bugzilla.gnome.org/show_bug.cgi?id=703048 */
         dir = g_build_filename (g_get_user_data_dir (), "applications", NULL);
-        g_mkdir (dir, 0700);
+        (void) g_mkdir (dir, 0700);
         g_free (dir);
 
         gsd_ldsm_setup (FALSE);


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