mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 20:22:11 +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)
|
if (g_mkdir (fn, mode) == -1 && errno != EEXIST)
|
||||||
{
|
{
|
||||||
int errno_save = errno;
|
int errno_save = errno;
|
||||||
if (p && errno != ENOENT)
|
if (errno != ENOENT || !p)
|
||||||
{
|
{
|
||||||
g_free (fn);
|
g_free (fn);
|
||||||
errno = errno_save;
|
errno = errno_save;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user