aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-02-08 15:21:44 +0100
committerMattias Andrée <m@maandree.se>2025-02-08 15:21:44 +0100
commit45cd6ce8a57149a6de063f803683989f05f538ef (patch)
tree10f77bfaf2b75b5bd249903298b26969f5e708f4
parentUpdate e-mail (diff)
downloadsshexec-45cd6ce8a57149a6de063f803683989f05f538ef.tar.gz
sshexec-45cd6ce8a57149a6de063f803683989f05f538ef.tar.bz2
sshexec-45cd6ce8a57149a6de063f803683989f05f538ef.tar.xz
Fix operand count check
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 1ad2cf8..987511d 100644
--- a/sshexec.c
+++ b/sshexec.c
@@ -232,7 +232,7 @@ main(int argc_unused, char *argv[])
}
destination = *argv++;
- if (!destination && !*argv)
+ if (!destination || !*argv)
usage();
if (dir) {