git://git.camperquake.de
/
zfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da91c90
)
Fix 'zpool list -H' error code
author
Brian Behlendorf
<behlendorf1@llnl.gov>
Tue, 23 Jul 2013 19:37:14 +0000
(12:37 -0700)
committer
Brian Behlendorf
<behlendorf1@llnl.gov>
Tue, 23 Jul 2013 19:39:05 +0000
(12:39 -0700)
Due to an uninitialized variable it was possible for the command
'zpool list -H' to return a non-zero error when there are no pools.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1605
cmd/zpool/zpool_main.c
patch
|
blob
|
history
diff --git
a/cmd/zpool/zpool_main.c
b/cmd/zpool/zpool_main.c
index
9d4d128
..
b96fbe4
100644
(file)
--- a/
cmd/zpool/zpool_main.c
+++ b/
cmd/zpool/zpool_main.c
@@
-3059,7
+3059,7
@@
int
zpool_do_list(int argc, char **argv)
{
int c;
- int ret;
+ int ret
= 0
;
list_cbdata_t cb = { 0 };
static char default_props[] =
"name,size,allocated,free,capacity,dedupratio,"