mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
When using source-file, run the commands in the context of the source-file
command rather than with no context. This makes things like attach work from a file.
This commit is contained in:
4
server.c
4
server.c
@ -188,9 +188,9 @@ server_start(char *path)
|
||||
&cause, "%s: %s", strerror(errno), SYSTEM_CFG);
|
||||
goto error;
|
||||
}
|
||||
} else if (load_cfg(SYSTEM_CFG, &cause) != 0)
|
||||
} else if (load_cfg(SYSTEM_CFG, NULL, &cause) != 0)
|
||||
goto error;
|
||||
if (cfg_file != NULL && load_cfg(cfg_file, &cause) != 0)
|
||||
if (cfg_file != NULL && load_cfg(cfg_file, NULL, &cause) != 0)
|
||||
goto error;
|
||||
|
||||
exit(server_main(srv_fd));
|
||||
|
Reference in New Issue
Block a user