Skip to content
Snippets Groups Projects
Commit c471793f authored by Morris Jette's avatar Morris Jette
Browse files

Treat program name starting with "." as absolute path

In srun --multi-prog mode, treat file name that begins with "."
as an absolute pathname with no need to use PATH.
Patch by Hongjia Cao, NUDT.
parent b93c80eb
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ _build_path(char* fname)
}
/* check if already absolute path */
if (file_name[0] == '/')
if ((file_name[0] == '/') || (file_name[0] == '.'))
return file_name;
/* search for the file using PATH environment variable */
......
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