Merge pull request #24781 from DaanDeMeyer/link-remove-check
systemctl: Remove check that linked unit files must contain a "/"
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user