chiark / gitweb /
Properly report invalid quoted strings
[elogind.git] / src / shared / install.c
index c32d6599a68ef1906ebd949efb62d9c973722708..276ca3ec7a3c26f2f7ffc28f05f0a196cd67d09d 100644 (file)
@@ -966,6 +966,9 @@ static int config_parse_also(
                 if (r < 0)
                         return r;
         }
+        if (!isempty(state))
+                log_syntax(unit, LOG_ERR, filename, line, EINVAL,
+                           "Trailing garbage, ignoring.");
 
         return 0;
 }