From eb397d19e447e723ea293ecdcd4441fa8fe017f2 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 26 Apr 2014 00:40:28 +0100 Subject: swapon: swaps with legacy version label are not supported Reviewed-by: Benno Schulenberg Signed-off-by: Sami Kerola --- sys-utils/swapon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys-utils/swapon.c') diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index 6c422ce41..b88b7ec63 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, SWAP_SIGNATURE_SZ) == 0) *sig = SIG_SWAPSPACE; else if (memcmp(buf, "S1SUSPEND", 9) == 0 || -- cgit v1.2.3-55-g7522