projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92d6b0b
)
systemctl: improve message when we skip a unit for editing a bit
author
Lennart Poettering
<lennart@poettering.net>
Thu, 29 Nov 2018 10:10:24 +0000
(11:10 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 29 Nov 2018 10:25:32 +0000
(11:25 +0100)
src/systemctl/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index 98beb80bfd4341bec523ff2ca459456c88db3ec5..b823d5d11609d3915b4486c574114844d34a0a00 100644
(file)
--- a/
src/systemctl/systemctl.c
+++ b/
src/systemctl/systemctl.c
@@
-6845,10
+6845,8
@@
static int unit_file_create_copy(
r = ask_char(&response, "yn", "\"%s\" already exists. Overwrite with \"%s\"? [(y)es, (n)o] ", new_path, fragment_path);
if (r < 0)
return r;
- if (response != 'y') {
- log_warning("%s ignored", unit_name);
- return -EKEYREJECTED;
- }
+ if (response != 'y')
+ return log_warning_errno(SYNTHETIC_ERRNO(EKEYREJECTED), "%s skipped.", unit_name);
}
r = create_edit_temp_file(new_path, fragment_path, &tmp_path);