diff options
author | Eric Sandeen <sandeen@fedoraproject.org> | 2008-04-18 15:24:31 +0000 |
---|---|---|
committer | Eric Sandeen <sandeen@fedoraproject.org> | 2008-04-18 15:24:31 +0000 |
commit | 6bdb0de51a85201e47b3fb5e7c59e409785259cd (patch) | |
tree | 2b25d5522133d12b6e4215f28ec6036b8a138d04 | |
parent | e1926bddf969c4889367f912ee097472a4068adb (diff) | |
download | e2fsprogs-6bdb0de51a85201e47b3fb5e7c59e409785259cd.tar.gz e2fsprogs-6bdb0de51a85201e47b3fb5e7c59e409785259cd.tar.xz e2fsprogs-6bdb0de51a85201e47b3fb5e7c59e409785259cd.zip |
fix endian issue on patchF-9-split
-rw-r--r-- | e2fsprogs-1.40.8-blkid-swap-tests.patch | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/e2fsprogs-1.40.8-blkid-swap-tests.patch b/e2fsprogs-1.40.8-blkid-swap-tests.patch index 8bc80f0..02b197d 100644 --- a/e2fsprogs-1.40.8-blkid-swap-tests.patch +++ b/e2fsprogs-1.40.8-blkid-swap-tests.patch @@ -27,13 +27,14 @@ index 45885c3..a070201 100644 unsigned char *buf __BLKID_ATTR((unused))) { struct swap_id_block *sws; -@@ -843,6 +843,11 @@ static int probe_swap1(struct blkid_probe *probe, +@@ -843,6 +843,12 @@ static int probe_swap1(struct blkid_probe *probe, if (!sws) return 1; + /* check for wrong version or zeroed pagecount, for sanity */ + if (!memcmp(id->bim_magic, "SWAPSPACE2", id->bim_len) && -+ (sws->sws_version != 1 || sws->sws_lastpage == 0)) ++ (blkid_le32(sws->sws_version) != 1 || ++ sws->sws_lastpage == 0)) + return 1; + /* arbitrary sanity check.. is there any garbage down there? */ |