diff options
-rw-r--r-- | src/systemctl/systemctl-enable.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/systemctl/systemctl-enable.c b/src/systemctl/systemctl-enable.c index a1ca837d4d..7014f92736 100644 --- a/src/systemctl/systemctl-enable.c +++ b/src/systemctl/systemctl-enable.c @@ -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); |