History log of /openbsd-src/usr.bin/tmux/file.c (Results 1 – 15 of 15)
Revision Date Author Comments
# 9d4bd388 17-Apr-2023 nicm <nicm@openbsd.org>

Make the check if printing is allowed the same as writing which is less
confusing.


# 83e2ab13 06-Jan-2023 nicm <nicm@openbsd.org>

If a pane is killed, cancel reading from the file. GitHub issue 3422.


# 7c8808e4 24-Aug-2022 nicm <nicm@openbsd.org>

Check for NULL returns from bufferevent_new.


# 80b5a9d1 22-Aug-2021 nicm <nicm@openbsd.org>

Do not double free expanded path in source-file, also remove some
unnecessary assignments.


# 5f7d4673 10-Jun-2021 nicm <nicm@openbsd.org>

Fire check callback after cleaning up event so it does not get stuck,
from Jeongho Jang in GitHub issue 2695.


# 6e7200d4 12-Feb-2021 nicm <nicm@openbsd.org>

Do not care about the server socket closing if exiting anyway.


# ab26eabf 11-Feb-2021 nicm <nicm@openbsd.org>

Add a couple of helper functions, and flush imsgs on exit.


# 0c0c2584 11-Feb-2021 nicm <nicm@openbsd.org>

Move file handling protocol stuff all into file.c so it can be reused
more easily.


# 54e3eca9 26-May-2020 nicm <nicm@openbsd.org>

Pass the stdout file descriptor from the client as well as stdin and use
them for control clients directly instead of passing everything via the
client.


# 96a20458 08-May-2020 nicm <nicm@openbsd.org>

imsg.h needs uio.h, pointed out by deraadt


# 80659a0f 16-Dec-2019 nicm <nicm@openbsd.org>

If /dev/fd/X is a symlink and realpath() expands symlinks, /dev/fd/X
ends up pointing to the wrong place before it is passed to the client.
The path is only used internally so there is no real need f

If /dev/fd/X is a symlink and realpath() expands symlinks, /dev/fd/X
ends up pointing to the wrong place before it is passed to the client.
The path is only used internally so there is no real need for
realpath(), remove it and move the get_path function to file.c where all
the callers are.

show more ...


# 57431a22 16-Dec-2019 nicm <nicm@openbsd.org>

Need to include message size in the maximum buffer calculation.


# dab96b18 16-Dec-2019 nicm <nicm@openbsd.org>

Instead of using large buffers in imsgs, add the data or path onto the end.


# 664907f0 12-Dec-2019 nicm <nicm@openbsd.org>

Do not check if client is dead if it is NULL.


# f4bc7c7a 12-Dec-2019 nicm <nicm@openbsd.org>

Rewrite the code for reading and writing files. Now, if the client is
not attached, the server process asks it to open the file, similar to
how works for stdin, stdout, stderr. This makes special fil

Rewrite the code for reading and writing files. Now, if the client is
not attached, the server process asks it to open the file, similar to
how works for stdin, stdout, stderr. This makes special files like
/dev/fd/X work (used by some shells). stdin, stdout and stderr and
control mode are now just special cases of the same mechanism. This will
also make it easier to use for other commands that read files such as
source-file.

show more ...