From 8e228dde62b2121e11e8182aca51ad7fc1f1c722 Mon Sep 17 00:00:00 2001 From: Serge Vakulenko Date: Tue, 6 Jan 2015 19:47:31 -0800 Subject: [PATCH] Fixed bug in fsutil: incorrect positioning of partition superblock. --- tools/fsutil/superblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/fsutil/superblock.c b/tools/fsutil/superblock.c index dc995e4..16c20e7 100644 --- a/tools/fsutil/superblock.c +++ b/tools/fsutil/superblock.c @@ -183,7 +183,7 @@ int fs_set_partition (fs_t *fs, unsigned pindex) } fs->part_offset *= 512; //printf ("Partition %u, type %02x, offset=%uk, length=%uk\n", pindex, fs->part_type, fs->part_offset/1024, fs->part_nsectors/2); - return 1; + return fs_seek (fs, 0); } int fs_open (fs_t *fs, const char *filename, int writable, unsigned pindex)