Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-updates-src > by-pkgid > 55eb56c258e2e09e5695782a54aaaf5b > files > 8

util-linux-2.25.2-3.5.mga5.src.rpm

--- mount/swapon.c	2009-01-13 18:10:01.000000000 +0100
+++ mount/swapon.c.oden	2009-01-13 18:10:07.000000000 +0100
@@ -906,6 +906,8 @@ main_swapoff(int argc, char *argv[]) {
 					loop = opt + 5;
 				if (strncmp(opt, "encryption=", 11) == 0)
 					encryption = opt + 11;
+				if (strncmp(opt, "encrypted", 9) == 0)
+					skip=1;
 			}
 			if (loop && encryption) {
 				if (!is_in_proc_swaps(loop)) {