Fix  lseek's bug in smartfs
lseek should set the file offset to the size of the file plus offset
@@ -1040,7 +1040,7 @@ static off_t smartfs_seek_internal(struct smartfs_mountpt_s *fs, struct smartfs_
break;
case SEEK_END:
- newpos = sf->entry.datlen - offset;
+ newpos = sf->entry.datlen + offset;
break;
}
