summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-04-05 16:48:27 +0800
committerMike Yuan <me@yhndnzj.com>2023-04-07 16:10:54 +0800
commit6e5d0e319ee45c6c2588a53468e98bd1b9c62f0d (patch)
tree88d31da699fe4192ce4a9649840e5f065ca7eb83 /src/systemctl
parente144a26306dbe07fe37f294301421a938b781247 (diff)
downloadsystemd-6e5d0e319ee45c6c2588a53468e98bd1b9c62f0d.tar.gz
edit-util: add DROPIN_MARKER_{START,END}
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl-edit.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/systemctl/systemctl-edit.c b/src/systemctl/systemctl-edit.c
index 5f42dc239f..ff16b73229 100644
--- a/src/systemctl/systemctl-edit.c
+++ b/src/systemctl/systemctl-edit.c
@@ -13,9 +13,6 @@
#include "systemctl.h"
#include "terminal-util.h"
-#define EDIT_MARKER_START "### Anything between here and the comment below will become the contents of the drop-in file"
-#define EDIT_MARKER_END "### Edits below this comment will be discarded"
-
int verb_cat(int argc, char *argv[], void *userdata) {
_cleanup_(hashmap_freep) Hashmap *cached_name_map = NULL, *cached_id_map = NULL;
_cleanup_(lookup_paths_free) LookupPaths lp = {};
@@ -316,8 +313,8 @@ static int find_paths_to_edit(
int verb_edit(int argc, char *argv[], void *userdata) {
_cleanup_(edit_file_context_done) EditFileContext context = {
- .marker_start = EDIT_MARKER_START,
- .marker_end = EDIT_MARKER_END,
+ .marker_start = DROPIN_MARKER_START,
+ .marker_end = DROPIN_MARKER_END,
.remove_parent = !arg_full,
};
_cleanup_(lookup_paths_free) LookupPaths lp = {};