X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flocale%2Flocaled.c;h=fedcdfb373c83899a2fcf12357f6cf1ce233b4f6;hp=04268a19821f1559ea4cc4665ffa596e890aff91;hb=641906e9366891e0ad3e6e38b7396a427678c4cf;hpb=0b507b17a760b21e33fc52ff377db6aa5086c680 diff --git a/src/locale/localed.c b/src/locale/localed.c index 04268a198..fedcdfb37 100644 --- a/src/locale/localed.c +++ b/src/locale/localed.c @@ -31,6 +31,7 @@ #include "dbus-common.h" #include "polkit.h" #include "def.h" +#include "env-util.h" #define INTERFACE \ " \n" \ @@ -567,7 +568,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) @@ -853,7 +854,7 @@ static int convert_x11_to_vconsole(DBusConnection *connection) { * layout stripped off. */ if (x > 0 && strlen(a[1]) == x && - strncmp(state.x11_layout, a[1], x) == 0) + strneq(state.x11_layout, a[1], x)) matching = 5; else { size_t w;