diff options
author | William Jon McCann <jmccann@redhat.com> | 2012-04-25 11:45:31 -0400 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2012-04-25 14:03:01 -0400 |
commit | 226de65365e2d28e92457d54d6fbb5f4f54e94db (patch) | |
tree | cfcb584c692e65bf155320643d2434281864d0cc | |
parent | 9de1fae218b3039408dce4325d30ce62ec4f66cf (diff) | |
download | gconf-226de65365e2d28e92457d54d6fbb5f4f54e94db.tar.gz |
Make directories with parents in case they don't exist
https://bugzilla.gnome.org/show_bug.cgi?id=646663
-rw-r--r-- | gconf/gconfd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gconf/gconfd.c b/gconf/gconfd.c index d42ce1e7..b6fb103f 100644 --- a/gconf/gconfd.c +++ b/gconf/gconfd.c @@ -1755,9 +1755,9 @@ open_append_handle (GError **err) get_log_names (&logdir, &logfile); - g_mkdir (logdir, 0700); /* ignore failure, we'll catch failures - * that matter on open() - */ + g_mkdir_with_parents (logdir, 0700); /* ignore failure, we'll catch failures + * that matter on open() + */ append_handle = g_fopen (logfile, "a"); @@ -1832,9 +1832,9 @@ logfile_save (void) get_log_names (&logdir, &logfile); - g_mkdir (logdir, 0700); /* ignore failure, we'll catch failures - * that matter on open() - */ + g_mkdir_with_parents (logdir, 0700); /* ignore failure, we'll catch failures + * that matter on open() + */ saveme = g_string_new (NULL); |