Skip to content

Commit

Permalink
[#1847] remove unnecessary size check
Browse files Browse the repository at this point in the history
  • Loading branch information
trel committed Sep 5, 2018
1 parent a96a4b9 commit b97840c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions s3/libirods_s3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2060,23 +2060,14 @@ irods::error s3FileStatPlugin(
result = ERROR(S3_FILE_STAT_ERR, msg.str());
}

else if( savedProperties.contentLength >= 0) {
else {
_statbuf->st_mode = S_IFREG;
_statbuf->st_nlink = 1;
_statbuf->st_uid = getuid ();
_statbuf->st_gid = getgid ();
_statbuf->st_atime = _statbuf->st_mtime = _statbuf->st_ctime = savedProperties.lastModified;
_statbuf->st_size = savedProperties.contentLength;
}

else {
std::stringstream msg;
msg << __FUNCTION__;
msg << " - S3 object not found: \"";
msg << _object->physical_path();
msg << "\"";
result = ERROR(S3_FILE_STAT_ERR, msg.str());
}
}
}
}
Expand Down

0 comments on commit b97840c

Please sign in to comment.