Skip to content

Commit

Permalink
check return code of stat
Browse files Browse the repository at this point in the history
  • Loading branch information
spbooth committed Jul 31, 2023
1 parent ef7696f commit 748fe27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gass/copy/source/globus_gass_copy_glob.c
Original file line number Diff line number Diff line change
Expand Up @@ -2096,7 +2096,10 @@ globus_l_gass_copy_cksm_file(
{
count = GASS_COPY_CKSM_BUFSIZE;
}
globus_l_gass_copy_stat_file(url,&statbuf);
result = globus_l_gass_copy_stat_file(url,&statbuf);
if( result != GLOBUS_SUCCESS){
goto error_fd;
}
is_regular = statbuf.type == GLOBUS_GASS_COPY_GLOB_ENTRY_FILE;
if( is_regular ){
fd = open(parsed_url.url_path, O_RDONLY);
Expand Down

0 comments on commit 748fe27

Please sign in to comment.