From 39eff0fe8c39f9d7b9d9a075c52a5a4725d89197 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 15 Apr 2023 21:04:30 +0530 Subject: [PATCH] Fix a regression in the previous release that broke the remote file kitten Fixes #6186 --- docs/changelog.rst | 5 +++++ kitty/launcher/main.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 328b807b6..065afb1f3 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -35,6 +35,11 @@ mouse anywhere in the current command to move the cursor there. See Detailed list of changes ------------------------------------- +0.28.1 [future] +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- Fix a regression in the previous release that broke the remote file kitten (:iss:`6186`) + 0.28.0 [2023-04-15] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/launcher/main.c b/kitty/launcher/main.c index 8d2956a83..2c067d1de 100644 --- a/kitty/launcher/main.c +++ b/kitty/launcher/main.c @@ -332,7 +332,7 @@ exec_kitten(int argc, char *argv[], char *exe_dir) { newargv[argc] = 0; newargv[0] = "kitten"; errno = 0; - execv(exe, argv); + execv(exe, newargv); fprintf(stderr, "Failed to execute kitten (%s) with error: %s\n", exe, strerror(errno)); exit(1); }