Imported Upstream version 1.4.16+git20130902
This commit is contained in:
parent
e76be63abf
commit
e70fb8c051
517 changed files with 44015 additions and 43295 deletions
|
@ -281,8 +281,8 @@ process_arguments (int argc, char **argv)
|
|||
case 'C': /* Command for remote machine */
|
||||
commands++;
|
||||
if (commands > 1)
|
||||
asprintf (&remotecmd, "%s;echo STATUS CODE: $?;", remotecmd);
|
||||
asprintf (&remotecmd, "%s%s", remotecmd, optarg);
|
||||
xasprintf (&remotecmd, "%s;echo STATUS CODE: $?;", remotecmd);
|
||||
xasprintf (&remotecmd, "%s%s", remotecmd, optarg);
|
||||
break;
|
||||
case 'S': /* skip n (or all) lines on stdout */
|
||||
if (optarg == NULL)
|
||||
|
@ -328,13 +328,13 @@ process_arguments (int argc, char **argv)
|
|||
if (strlen(remotecmd) == 0) {
|
||||
for (; c < argc; c++)
|
||||
if (strlen(remotecmd) > 0)
|
||||
asprintf (&remotecmd, "%s %s", remotecmd, argv[c]);
|
||||
xasprintf (&remotecmd, "%s %s", remotecmd, argv[c]);
|
||||
else
|
||||
asprintf (&remotecmd, "%s", argv[c]);
|
||||
xasprintf (&remotecmd, "%s", argv[c]);
|
||||
}
|
||||
|
||||
if (commands > 1 || passive)
|
||||
asprintf (&remotecmd, "%s;echo STATUS CODE: $?;", remotecmd);
|
||||
xasprintf (&remotecmd, "%s;echo STATUS CODE: $?;", remotecmd);
|
||||
|
||||
if (remotecmd == NULL || strlen (remotecmd) <= 1)
|
||||
usage_va(_("No remotecmd"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue