chiark / gitweb /
core: interpret \; token in ExecStart as escaped ;
[elogind.git] / src / test / test-unit-file.c
index bb5cbdf9d7212852e7b129aebdeaf2e5733cd381..bca8a69b7867d3575a84b088dcf13f10bdf5af29 100644 (file)
@@ -138,6 +138,16 @@ static void test_config_parse_exec(void) {
 
         assert_se(c1->command_next == NULL);
 
+        /* escaped semicolon */
+        r = config_parse_exec("fake", 5, "section",
+                              "LValue", 0,
+                              "/usr/bin/find \\;",
+                              &c, NULL);
+        assert_se(r >= 0);
+        c1 = c1->command_next;
+        check_execcommand(c1,
+                          "/usr/bin/find", "/usr/bin/find", ";", false);
+
         exec_command_free_list(c);
 }