mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Merge branch 'wip/carlosg/fix-mkdir-with-parents-errors' into 'master'
gfileutils: Fix error propagation for other than ENOENT See merge request GNOME/glib!1027
This commit is contained in:
commit
870b30bd7c
@ -262,7 +262,7 @@ g_mkdir_with_parents (const gchar *pathname,
|
||||
if (g_mkdir (fn, mode) == -1 && errno != EEXIST)
|
||||
{
|
||||
int errno_save = errno;
|
||||
if (p && errno != ENOENT)
|
||||
if (errno != ENOENT || !p)
|
||||
{
|
||||
g_free (fn);
|
||||
errno = errno_save;
|
||||
|
Loading…
Reference in New Issue
Block a user