[systemd-devel] [PATCH] localed: create /etc/X11/xorg.conf.d if needed

Michał Bartoszkiewicz mbartoszkiewicz at gmail.com
Fri Dec 28 13:40:41 PST 2012


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)
-- 
1.8.0.2



More information about the systemd-devel mailing list