mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-23 16:10:03 +01:00
gdbusauthmechanismsha1: Create .dbus-keyrings directory recursively
If the directory is overridden, for example when running tests, the parent directory of `.dbus-keyrings` (i.e. the fake `$HOME` directory) might not exist. Create it automatically. This should realistically not have an effect on non-test code. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1912
This commit is contained in:
parent
74c33c73ac
commit
3f7fa2f955
@ -292,7 +292,7 @@ ensure_keyring_directory (GError **error)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_mkdir (path, 0700) != 0)
|
if (g_mkdir_with_parents (path, 0700) != 0)
|
||||||
{
|
{
|
||||||
int errsv = errno;
|
int errsv = errno;
|
||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user