projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92f95ae
)
systemctl: Improve link directory separator error message
author
Daan De Meyer
<daan.j.demeyer@gmail.com>
Wed, 21 Sep 2022 18:42:06 +0000
(20:42 +0200)
committer
Daan De Meyer
<daan.j.demeyer@gmail.com>
Thu, 22 Sep 2022 09:57:51 +0000
(11:57 +0200)
Let's suggest users try ./<filename> when they encounter this error.
src/systemctl/systemctl-enable.c
patch
|
blob
|
history
diff --git
a/src/systemctl/systemctl-enable.c
b/src/systemctl/systemctl-enable.c
index a1ca837d4d74ae51a2685860327ba8cd3e4c06f4..730b4a494cdbc5d872c8640d5815085f54cd522b 100644
(file)
--- a/
src/systemctl/systemctl-enable.c
+++ b/
src/systemctl/systemctl-enable.c
@@
-25,7
+25,8
@@
static int normalize_filenames(char **names) {
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);