diff -Naur busybox.orig/util-linux/mkswap.c busybox/util-linux/mkswap.c --- busybox.orig/util-linux/mkswap.c 2008-02-03 08:20:21 +0000 +++ busybox/util-linux/mkswap.c 2008-02-03 11:59:41 +0000 @@ -66,7 +66,9 @@ fd = xopen(argv[1], O_RDWR); /* fdlength was reported to be unreliable - use seek */ len = xlseek(fd, 0, SEEK_END); +#if ENABLE_SELINUX xlseek(fd, 0, SEEK_SET); +#endif pagesize = getpagesize(); printf("Setting up swapspace version 1, size = %"OFF_FMT"u bytes\n", len - pagesize);