From d1d07f97900801917bf4dda70775ac3bc5adb983 Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 20 Sep 2026 07:59:55 +0000 Subject: [PATCH] =?UTF-8?q?Expand=20-c=20for=20run-shell=20like=20the=20ot?= =?UTF-8?q?her=20-c=20flags,=20reported=20by=20Sa=C3=BAl=20Nogueras.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd-run-shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd-run-shell.c b/cmd-run-shell.c index 7e0c62e56..4834cd9f7 100644 --- a/cmd-run-shell.c +++ b/cmd-run-shell.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-run-shell.c,v 1.94 2026/08/25 06:04:33 nicm Exp $ */ +/* $OpenBSD: cmd-run-shell.c,v 1.95 2026/09/20 07:59:55 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha @@ -164,7 +164,7 @@ cmd_run_shell_exec(struct cmd *self, struct cmdq_item *item) if (cdata->client != NULL) cdata->client->references++; if (args_has(args, 'c')) - cdata->cwd = xstrdup(args_get(args, 'c')); + cdata->cwd = format_single_from_target(item, args_get(args, 'c')); else cdata->cwd = xstrdup(server_client_get_cwd(c, s));