aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-02-08 15:29:30 +0100
committerMattias Andrée <m@maandree.se>2025-02-08 15:29:30 +0100
commit131af4cf34f9685f3223d7c27f6c6a2eb5d26529 (patch)
tree2397b9754c75abb4107f83c797f728667480c6e5
parentForbid - and variable assigment formatted command (diff)
downloadsshexec-131af4cf34f9685f3223d7c27f6c6a2eb5d26529.tar.gz
sshexec-131af4cf34f9685f3223d7c27f6c6a2eb5d26529.tar.bz2
sshexec-131af4cf34f9685f3223d7c27f6c6a2eb5d26529.tar.xz
Use `exec env --` instead of `exec --`
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--sshexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshexec.c b/sshexec.c
index 9306c5c..a6db757 100644
--- a/sshexec.c
+++ b/sshexec.c
@@ -245,7 +245,7 @@ main(int argc_unused, char *argv[])
build_command_escape(dir);
build_command_asis(" && ");
}
- build_command_asis("exec --");
+ build_command_asis("exec env --");
for (; *argv; argv++) {
build_command_asis(" ");
build_command_escape(*argv);