Revert "fs/fat/fs_fat32.c: Fixes issue when seeking to end of file where we move one too many clusters ahead due to < vs <= logic. This causes us to move past the last cluster in the file."

This reverts commit 7ffe023766.

This change is reverted because it introduces other problems when seeking around the file.
This commit is contained in:
Gregory Nutt 2019-01-05 16:43:47 -06:00
parent 7ffe023766
commit 15688c4331

View File

@ -1159,7 +1159,7 @@ static off_t fat_seek(FAR struct file *filep, off_t offset, int whence)
*/
ff->ff_currentcluster = cluster;
if (position <= clustersize)
if (position < clustersize)
{
break;
}