diff options
author | Mike Yuan <me@yhndnzj.com> | 2023-04-07 01:41:24 +0800 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2023-04-07 16:13:00 +0800 |
commit | bc6c7a58c25f9e974996d43473fbfb1273d746c0 (patch) | |
tree | 2646bf79a8f04707d9d358e858b2a4eb2994c428 /src/systemctl | |
parent | 54ad6aa164042a7e4c49abf59ad1d728c1bb6d0b (diff) | |
download | systemd-bc6c7a58c25f9e974996d43473fbfb1273d746c0.tar.gz |
edit-util: introduce overwrite_with_origin switch
Before this commit, if `original_path` is given,
it will always be used to overwrite `path`.
After this commit, it's controlled by the newly-added
switch `overwrite_with_origin`.
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl-edit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemctl/systemctl-edit.c b/src/systemctl/systemctl-edit.c index ff16b73229..561b01a67a 100644 --- a/src/systemctl/systemctl-edit.c +++ b/src/systemctl/systemctl-edit.c @@ -316,6 +316,7 @@ int verb_edit(int argc, char *argv[], void *userdata) { .marker_start = DROPIN_MARKER_START, .marker_end = DROPIN_MARKER_END, .remove_parent = !arg_full, + .overwrite_with_origin = true, }; _cleanup_(lookup_paths_free) LookupPaths lp = {}; _cleanup_strv_free_ char **names = NULL; |