Commit 42d1bc03 authored by Philip Carns's avatar Philip Carns

make getexe() ignore any mount information in the trailing job data


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@131 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 67463e6f
......@@ -316,6 +316,7 @@ int darshan_log_getfile(darshan_fd fd, struct darshan_job *job, struct darshan_f
int darshan_log_getexe(darshan_fd fd, char *buf, int *flag)
{
int ret;
char* newline;
gzseek(fd, sizeof(struct darshan_job), SEEK_SET);
......@@ -330,6 +331,14 @@ int darshan_log_getexe(darshan_fd fd, char *buf, int *flag)
else
*flag = 0;
/* this call is only supposed to return the exe string, but starting in
* log format 1.23 there could be a table of mount entry information
* after the exe. Look for newline character and truncate there.
*/
newline = strchr(buf, '\n');
if(newline)
*newline = '\0';
return (0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment