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:
parent
7ffe023766
commit
15688c4331
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user