File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ int main(int argc, char *argv[])
50
50
opal_argv_append_nosize (& pargs , argv [m ]);
51
51
/* Did the user specify a prefix, or want prefix by default? */
52
52
if (0 == strcmp (argv [m ], "--prefix" )) {
53
- pfx = strdup ( argv [m + 1 ]);
53
+ asprintf ( & pfx , "%s%s" , argv [m + 1 ], "/bin" );
54
54
}
55
55
}
56
56
@@ -93,7 +93,8 @@ int main(int argc, char *argv[])
93
93
}
94
94
95
95
execve (truepath , pargs , environ );
96
- fprintf (stderr , "The mpirun cmd failed to exec its actual executable - your application will NOT execute. Error: %s\n" , strerror (errno ));
96
+ fprintf (stderr , "The mpirun (\"%s\") cmd failed to exec its actual executable - your application will NOT execute. Error: %s\n" ,
97
+ truepath ? truepath : "NULL" , strerror (errno ));
97
98
exit (1 );
98
99
}
99
100
You can’t perform that action at this time.
0 commit comments