mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
cb00e869ea
@ -121,6 +121,14 @@ cmd_source_file_done(struct client *c, const char *path, int error,
|
|||||||
static void
|
static void
|
||||||
cmd_source_file_add(struct cmd_source_file_data *cdata, const char *path)
|
cmd_source_file_add(struct cmd_source_file_data *cdata, const char *path)
|
||||||
{
|
{
|
||||||
|
char resolved[PATH_MAX];
|
||||||
|
|
||||||
|
if (realpath(path, resolved) == NULL) {
|
||||||
|
log_debug("%s: realpath(\"%s\") failed: %s", __func__,
|
||||||
|
path, strerror(errno));
|
||||||
|
} else
|
||||||
|
path = resolved;
|
||||||
|
|
||||||
log_debug("%s: %s", __func__, path);
|
log_debug("%s: %s", __func__, path);
|
||||||
cdata->files = xreallocarray(cdata->files, cdata->nfiles + 1,
|
cdata->files = xreallocarray(cdata->files, cdata->nfiles + 1,
|
||||||
sizeof *cdata->files);
|
sizeof *cdata->files);
|
||||||
|
Loading…
Reference in New Issue
Block a user