Fix a regression in the previous release that broke the remote file kitten

Fixes #6186
This commit is contained in:
Kovid Goyal 2023-04-15 21:04:30 +05:30
parent 12efff6d08
commit 39eff0fe8c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 1 deletions

View File

@ -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]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -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);
}