g_file_make_directory_with_parents: Fix error propagation
authorOwen W. Taylor <otaylor@fishsoup.net>
Mon, 30 Jul 2012 11:33:05 +0000 (13:33 +0200)
committerOwen W. Taylor <otaylor@fishsoup.net>
Mon, 30 Jul 2012 16:29:26 +0000 (18:29 +0200)
commitb0bce4ad41937dabf7e5c94dcce3caf4e88f3f97
tree3cad30068647ddb8db068335962b03898da87ada
parentd7829ced532a5ffba4c56772a7a4b24e3e228651
g_file_make_directory_with_parents: Fix error propagation

When creating a directory fails for some reason other than
the parent not existing, don't clear the error before we try
to propagate it.

To reproduce, run 'ostadmin init' on /ostree or otherwise try to
run the function on a directory with a parent directory where the
current user is not allowed to write.

https://bugzilla.gnome.org/show_bug.cgi?id=680823
gio/gfile.c