Kill client rather than fatalx on bad file handling messages, reported

by Tim Zheng.
This commit is contained in:
nicm
2026-04-23 12:36:15 +00:00
parent ffe80579df
commit 1d9522a7a6
3 changed files with 21 additions and 15 deletions

6
tmux.h
View File

@@ -2949,9 +2949,9 @@ void file_write_data(struct client_files *, struct imsg *);
void file_write_close(struct client_files *, struct imsg *);
void file_read_open(struct client_files *, struct tmuxpeer *, struct imsg *,
int, int, client_file_cb, void *);
void file_write_ready(struct client_files *, struct imsg *);
void file_read_data(struct client_files *, struct imsg *);
void file_read_done(struct client_files *, struct imsg *);
int file_write_ready(struct client_files *, struct imsg *);
int file_read_data(struct client_files *, struct imsg *);
int file_read_done(struct client_files *, struct imsg *);
void file_read_cancel(struct client_files *, struct imsg *);
/* server.c */