@ -75,8 +75,8 @@ long mufs_seek(struct mufs_file *file, long offset, int whence)
switch (whence) {
case SEEK_SET: break;
case SEEK_CUR: offset = file->va + offset; break;
case SEEK_END: offset = file->tree->file_size; break;
case SEEK_CUR: offset += file->va; break;
case SEEK_END: offset += file->tree->file_size; break;
default: return -1;
}