Merge "liblp: Fix incorrect get_block_device_size usage."

This commit is contained in:
Treehugger Robot 2018-07-09 17:14:14 +00:00 committed by Gerrit Code Review
commit a04058ea48

View file

@ -38,7 +38,8 @@ bool GetDescriptorSize(int fd, uint64_t* size) {
}
if (S_ISBLK(s.st_mode)) {
return get_block_device_size(fd);
*size = get_block_device_size(fd);
return *size != 0;
}
int64_t result = SeekFile64(fd, 0, SEEK_END);