[systemd-devel] [PATCH] localed: create /etc/X11/xorg.conf.d if needed
Lennart Poettering
lennart at poettering.net
Thu Jan 3 15:29:15 PST 2013
On Fri, 28.12.12 22:40, Michał Bartoszkiewicz (mbartoszkiewicz at gmail.com) wrote:
Thanks!
Applied!
> Use mkdir_p_label instead of mkdir_parents_label, so that the final
> directory component is created too.
> ---
> src/locale/localed.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/locale/localed.c b/src/locale/localed.c
> index 04268a1..bb2a3a2 100644
> --- a/src/locale/localed.c
> +++ b/src/locale/localed.c
> @@ -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)
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list