summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Mills <gary_mills@fastmail.fm>2014-01-28 07:41:46 -0600
committerGordon Ross <gwr@nexenta.com>2014-01-30 12:51:28 -0500
commit6e096e64ab50f0e0567b99c4306fe9f3dead76e6 (patch)
tree8a94073f4d8131be9c55abd09365f16893e2ce4a
parent8e268185036f404515ce8bc575423ac390136e3f (diff)
downloadillumos-joyent-6e096e64ab50f0e0567b99c4306fe9f3dead76e6.tar.gz
3015 lofiadm should use libz.so.1, not libz.so
Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Approved by: Gordon Ross <gwr@nexenta.com>
-rw-r--r--usr/src/cmd/lofiadm/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/cmd/lofiadm/main.c b/usr/src/cmd/lofiadm/main.c
index 0fc494943e..0740bce1b7 100644
--- a/usr/src/cmd/lofiadm/main.c
+++ b/usr/src/cmd/lofiadm/main.c
@@ -24,6 +24,7 @@
* Copyright 2012 Joyent, Inc. All rights reserved.
*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
+ * Copyright (c) 2014 Gary Mills
*/
/*
@@ -150,7 +151,7 @@ lofi_compress_info_t lofi_compress_table[LOFI_COMPRESS_FUNCTIONS] = {
#define KILOBYTE 1024
#define MEGABYTE (KILOBYTE * KILOBYTE)
#define GIGABYTE (KILOBYTE * MEGABYTE)
-#define LIBZ "libz.so"
+#define LIBZ "libz.so.1"
static void
usage(const char *pname)
@@ -168,7 +169,7 @@ gzip_compress(void *src, size_t srclen, void *dst, size_t *dstlen, int level)
/*
* The first time we are called, attempt to dlopen()
- * libz.so and get a pointer to the compress2() function
+ * libz.so.1 and get a pointer to the compress2() function
*/
if (compress2p == NULL) {
if ((libz_hdl = openlib(LIBZ)) == NULL)