summaryrefslogtreecommitdiff
path: root/usr/src/cmd/lofiadm
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2012-09-04 12:05:09 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2012-09-04 12:05:09 +0000
commit789dced6271483dc9a692ceb9c8e31f2b2f5da27 (patch)
tree99df8fff9d0def01a5a96944a9a0c6dd80e44877 /usr/src/cmd/lofiadm
parent5206eae7d9da76334889b13e39687d80da51573e (diff)
downloadillumos-joyent-789dced6271483dc9a692ceb9c8e31f2b2f5da27.tar.gz
3135 lofi_uncompress doesn't initialize all variables
Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Richard Lowe <richlowe@richlowe.net> Approved by: Eric Schrock <eric.schrock@delphix.com>
Diffstat (limited to 'usr/src/cmd/lofiadm')
-rw-r--r--usr/src/cmd/lofiadm/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/cmd/lofiadm/main.c b/usr/src/cmd/lofiadm/main.c
index deadd4c5d7..23c127da4e 100644
--- a/usr/src/cmd/lofiadm/main.c
+++ b/usr/src/cmd/lofiadm/main.c
@@ -21,6 +21,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright 2012 Joyent, Inc. All rights reserved.
*/
/*
@@ -1274,6 +1275,7 @@ lofi_uncompress(int lfd, const char *filename)
* Disallow uncompressing the file if it is
* already mapped.
*/
+ li.li_crypto_enabled = B_FALSE;
li.li_minor = 0;
(void) strlcpy(li.li_filename, filename, sizeof (li.li_filename));
if (ioctl(lfd, LOFI_GET_MINOR, &li) != -1)