aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README4
-rw-r--r--sshexec.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/README b/README
index 25af146..222445a 100644
--- a/README
+++ b/README
@@ -4,8 +4,8 @@ NAME
SYNOPSIS
sshexec [{ [ssh=ssh-command] [dir=directory] [cd=(strict|lax)]
[[fd]{>,>>,>|,<,<>}[&]=file] [asis=asis-marker
- [nasis=asis-count]] }] [ssh-option] ... destination
- command [argument] ...
+ [nasis=asis-count]] }] [ssh-option] ... destination
+ command [argument] ...
DESCRIPTION
The sshexec utility is a wrapper for SSH that makes it easy to
diff --git a/sshexec.c b/sshexec.c
index 7f49530..ff7efe0 100644
--- a/sshexec.c
+++ b/sshexec.c
@@ -587,10 +587,10 @@ parse_ssh_options(char *argv[], size_t *nopts_out)
/* Option cannot have an argument */
} else if (strchr(arged_opts, opt)) {
/* Option must have an argument */
- if (arg[1]) {
+ if (*arg) {
/* Argument is attached to option */
break;
- } else if (argv[1]) {
+ } else if (*argv) {
/* Argument is detached from option */
argv++;
nopts++;
@@ -657,7 +657,7 @@ main(int argc_unused, char *argv[])
if (!strcmp(destination, "-"))
exitf("%s: the command argument must not be \"-\"\n", argv0);
else if (strchr(destination, '='))
- exitf("%s: the command argument must contain an \'=\'\n", argv0);
+ exitf("%s: the command argument must not contain an \'=\'\n", argv0);
/* Parse command line operands */
extract_directory_from_destination();