summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/lomount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdk-stage1/lomount.c b/mdk-stage1/lomount.c
index 0d7a7e1db..77e520c41 100644
--- a/mdk-stage1/lomount.c
+++ b/mdk-stage1/lomount.c
@@ -79,7 +79,8 @@ set_loop (const char *device, const char *file, int gz)
strncpy(loopinfo.lo_name, file, LO_NAME_SIZE);
loopinfo.lo_name[LO_NAME_SIZE - 1] = 0;
loopinfo.lo_offset = 0;
- loopinfo.lo_encrypt_key = 13; /* LO_CRYPT_GZ */
+ if (gz)
+ loopinfo.lo_encrypt_key = 13; /* LO_CRYPT_GZ */
#ifdef MCL_FUTURE
/*