summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-04-11 09:54:45 +0000
committernicm <nicm@openbsd.org>2018-04-11 09:54:45 +0000
commit68669a7ec562bc126369de766bd59b533b000d5d (patch)
tree9b30d6460ca72a9a0651586daf69bae3633355a7
parentSome (probably newer) re(4) cards don't have the 32-bit memory BAR that (diff)
downloadwireguard-openbsd-68669a7ec562bc126369de766bd59b533b000d5d.tar.xz
wireguard-openbsd-68669a7ec562bc126369de766bd59b533b000d5d.zip
Allow no client for rename-session, from Ryan Freeman.
-rw-r--r--usr.bin/tmux/cmd-rename-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-rename-session.c b/usr.bin/tmux/cmd-rename-session.c
index ca229719378..4ae4fedaad8 100644
--- a/usr.bin/tmux/cmd-rename-session.c
+++ b/usr.bin/tmux/cmd-rename-session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-rename-session.c,v 1.27 2018/03/01 12:53:08 nicm Exp $ */
+/* $OpenBSD: cmd-rename-session.c,v 1.28 2018/04/11 09:54:45 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -47,7 +47,7 @@ static enum cmd_retval
cmd_rename_session_exec(struct cmd *self, struct cmdq_item *item)
{
struct args *args = self->args;
- struct client *c = cmd_find_client(item, NULL, 0);
+ struct client *c = cmd_find_client(item, NULL, 1);
struct session *s = item->target.s;
char *newname;