Skip to content

Commit

Permalink
Merge pull request #1842 from dtcenter/bugfix_1508_met_v10.0_tc_gen_f…
Browse files Browse the repository at this point in the history
…ile_list_parsing

Bugfix 1508 met_v10.0 tc_gen file list parsing
  • Loading branch information
hsoh-u authored Jun 24, 2021
2 parents b73243c + 16a3695 commit 6410580
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions met/src/basic/vx_log/file_fxns.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ using namespace std;

bool is_regular_file(const char *path) {
struct stat path_stat;
stat(path, &path_stat);
return(S_ISREG(path_stat.st_mode));
return(!stat(path, &path_stat) && S_ISREG(path_stat.st_mode));
}

////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 6410580

Please sign in to comment.