From 45cd6ce8a57149a6de063f803683989f05f538ef Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 8 Feb 2025 15:21:44 +0100 Subject: Fix operand count check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- sshexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sshexec.c') 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) { -- cgit v1.2.3-70-g09d2