diff options
author | Tom Gundersen <teg@jklm.no> | 2015-06-03 22:34:11 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-06-03 22:34:11 +0200 |
commit | 21ee915614bbc35f4211a48f903a425caf386dbd (patch) | |
tree | b9cbb4e44977d223142cee197efeb10afba66573 /src/systemctl | |
parent | 6517217d49e59938611b6c00965f44d46a255a1d (diff) | |
parent | 9391a1c3d6c94c478b0016a81df3f874fd99260e (diff) |
Merge pull request #52 from mbiebl/systemctl-edit-default-editor
systemctl: Use /usr/bin/editor if available
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index a7b8e54a9c..b3d90d2c33 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -5879,7 +5879,7 @@ static int run_editor(char **paths) { execvp(editor, (char* const*) args); } - FOREACH_STRING(p, "nano", "vim", "vi") { + FOREACH_STRING(p, "editor", "nano", "vim", "vi") { args[0] = p; execvp(p, (char* const*) args); /* We do not fail if the editor doesn't exist |