Merge pull request #24781 from DaanDeMeyer/link-remove-check

systemctl: Remove check that linked unit files must contain a "/"
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-09-22 15:38:16 +02:00
committed by GitHub
+3 -2
View File
@@ -23,9 +23,10 @@ static int normalize_filenames(char **names) {
"Non-absolute paths are not allowed when --root is used: %s",
*u);
if (!strchr(*u,'/'))
if (!strchr(*u, '/'))
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"Link argument does contain at least one directory separator: %s",
"Link argument must contain at least one directory separator.\n"
"If you intended to link a file in the current directory, try ./%s instead.",
*u);
r = path_make_absolute_cwd(*u, &normalized_path);