mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-19 01:46:33 +02:00
Sync OpenBSD patchset 168:
Both of cmdclient and curclient CAN be NULL - if the command is executed from the configuration file. In this case, attach-session can't do much, and new-session should just assume -d.
This commit is contained in:
5
tmux.h
5
tmux.h
@@ -1,4 +1,4 @@
|
||||
/* $Id: tmux.h,v 1.386 2009-07-23 13:10:38 tcunha Exp $ */
|
||||
/* $Id: tmux.h,v 1.387 2009-07-23 13:25:27 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@@ -861,7 +861,8 @@ struct cmd_ctx {
|
||||
* cmdclient is the client which sent the MSG_COMMAND to the server, if
|
||||
* any. This is NULL unless the command came from the command-line.
|
||||
*
|
||||
* One of curclient or cmdclient is always NULL and the other not.
|
||||
* cmdclient and curclient may both be NULL if the command is in the
|
||||
* configuration file.
|
||||
*/
|
||||
struct client *curclient;
|
||||
struct session *cursession;
|
||||
|
Reference in New Issue
Block a user