Regression: g_mkdir_with_parents() returns 0 on failure
Looks like !1007 (merged) broke g_mkdir_with_parents(). Problem is it does what it says it does:
Ignore ENOENT errors up until the last element while trying to create each of the path elements in case a restricted file-system is being used where path elements can be hidden or non-accessible.
So now g_mkdir_with_parents() returns 0 (success) even when it fails to create the target directory. Test case is g_mkdir_with_parents("/root/ephy-test-dir", 488)
. It should return -1 because no permission to write to /root, but now returns 0 despite failure.