Skip to content

Commit

Permalink
Quote arguments to slurm command line
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Rift <[email protected]>
  • Loading branch information
riftEmber committed Dec 21, 2024
1 parent aa5b506 commit 7c9306a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ static char* chpl_launch_create_command(int argc, char* argv[],
chpl_append_to_cmd(&iCom, &len, " %s %s", chpl_get_real_binary_wrapper(),
chpl_get_real_binary_name());
for (i=1; i<argc; i++) {
chpl_append_to_cmd(&iCom, &len, " %s", argv[i]);
chpl_append_to_cmd(&iCom, &len, " \"%s\"", argv[i]);
}
char* format = "salloc %s";
int baseCommandLen = strlen(format) + len + 1;
Expand Down

0 comments on commit 7c9306a

Please sign in to comment.