mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-27 08:01:04 +08:00
fixed args in execvp for h5fuse (#2885)
This commit is contained in:
parent
a1a5d027a2
commit
8435e5d2d9
@ -1888,7 +1888,7 @@ test_subfiling_h5fuse(void)
|
||||
|
||||
if (pid == 0) {
|
||||
char *tmp_filename;
|
||||
char *args[6];
|
||||
char *args[7];
|
||||
|
||||
tmp_filename = HDmalloc(PATH_MAX);
|
||||
VRFY(tmp_filename, "HDmalloc succeeded");
|
||||
@ -1900,9 +1900,10 @@ test_subfiling_h5fuse(void)
|
||||
args[0] = HDstrdup("env");
|
||||
args[1] = HDstrdup("sh");
|
||||
args[2] = HDstrdup("h5fuse.sh");
|
||||
args[3] = HDstrdup("-q -f");
|
||||
args[4] = tmp_filename;
|
||||
args[5] = NULL;
|
||||
args[3] = HDstrdup("-q");
|
||||
args[4] = HDstrdup("-f");
|
||||
args[5] = tmp_filename;
|
||||
args[6] = NULL;
|
||||
|
||||
/* Call h5fuse script from MPI rank 0 */
|
||||
HDexecvp("env", args);
|
||||
|
Loading…
Reference in New Issue
Block a user