Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 2d4ad1ca5d26eb2694d23ca68c3b8fe4 > files > 14

util-linux-ng-2.13-3.4mdv2008.0.src.rpm

Index: util-linux-2.12q/mount/swapon.c
===================================================================
--- util-linux-2.12q.orig/mount/swapon.c	2005-04-29 14:29:32.000000000 +0200
+++ util-linux-2.12q/mount/swapon.c	2005-04-29 14:41:44.000000000 +0200
@@ -860,6 +860,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)) {