[PATCH 08/12] swapon: swaps with legacy version label are not supported

Sami Kerola
2014-04-27T20:06:13Z

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
sys-utils/swapon.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c
index 6c422ce..c2d4795 100644
--- a/sys-utils/swapon.c
+++ b/sys-utils/swapon.c
@@ -344,8 +344,7 @@ err:

static int swap_detect_signature(const char *buf, int *sig)
{
- if (memcmp(buf, "SWAP-SPACE", 10) == 0 ||
- memcmp(buf, "SWAPSPACE2", 10) == 0)
+ if (memcmp(buf, SWAP_SIGNATURE, 10) == 0)
*sig = SIG_SWAPSPACE;

else if (memcmp(buf, "S1SUSPEND", 9) == 0 ||
--
1.9.2