Commit ae94dfa4 authored by Alexander Siol's avatar Alexander Siol Committed by Kevin Wolf

fat: Sanity Checks gefixt

! Einige der Prüfungen zu alten/neuen Dateipositionen im fat-Treiber
  waren statisch true, jetzt wird auch wieder geprüft.
Signed-off-by: 's avatarAlexander Siol <dunklermeuchler@gmail.com>
Acked-by: 's avatarKevin Wolf <kwolf@tyndur.org>
parent 57f91328
......@@ -224,7 +224,7 @@ int fat_file_seek_handler(lostio_filehandle_t* filehandle, uint64_t offset,
newpos - filehandle->pos, data);
free(data);
if (filehandle->pos != filehandle->pos) {
if (filehandle->pos != newpos) {
return -1;
}
}
......@@ -250,7 +250,7 @@ int fat_file_seek_handler(lostio_filehandle_t* filehandle, uint64_t offset,
newpos - filehandle->pos, data);
free(data);
if (filehandle->pos != filehandle->pos) {
if (filehandle->pos != newpos) {
return -1;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment