localed: create /etc/X11/xorg.conf.d if needed

Use mkdir_p_label instead of mkdir_parents_label, so that the final
directory component is created too.
This commit is contained in:
Michał Bartoszkiewicz
2013-01-04 00:26:27 +01:00
committed by Lennart Poettering
parent 768aa35871
commit 9a9bb3ca1e
+1 -1
View File
@@ -567,7 +567,7 @@ static int write_data_x11(void) {
return 0;
}
mkdir_parents_label("/etc/X11/xorg.conf.d", 0755);
mkdir_p_label("/etc/X11/xorg.conf.d", 0755);
r = fopen_temporary("/etc/X11/xorg.conf.d/00-keyboard.conf", &f, &temp_path);
if (r < 0)