Skip to content
Snippets Groups Projects
Commit 1483fa3c authored by Christopher J. Morrone's avatar Christopher J. Morrone
Browse files

Add sbatch name to argv[0] for the getopt_long to print on errors.

parent 5e100e18
No related branches found
No related tags found
No related merge requests found
......@@ -1203,7 +1203,7 @@ static void _opt_batch_script(const void *body, int size)
/* getopt_long skips over the first argument, so fill it in blank */
argc = 1;
argv = xmalloc(sizeof(char *));
argv[0] = "";
argv[0] = "sbatch";
while((line = _next_line(body, size, &state)) != NULL) {
if (strncmp(line, magic_word, sizeof(magic_word)) != 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment