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 2012-12-28 22:40:41 +01:00 committed by Lennart Poettering
parent 768aa35871
commit 9a9bb3ca1e

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)