summaryrefslogtreecommitdiff
path: root/usr/src/cmd/beadm
diff options
context:
space:
mode:
authorAlexander Eremin <a.eremin@nexenta.com>2011-08-22 11:37:10 -0400
committerAlexander Eremin <a.eremin@nexenta.com>2011-08-22 11:37:10 -0400
commite64aafbeeceba238be9ae9daf26ee93aa999bd42 (patch)
treeb6eba9c68db7ef75d86da549954f8ef4f0c8c517 /usr/src/cmd/beadm
parent6b817808e8a80c4e9c93850856065502cc48f7ad (diff)
downloadillumos-joyent-e64aafbeeceba238be9ae9daf26ee93aa999bd42.tar.gz
1355 beadm produce a core dump while listing snapshots with -H option
1353 beadm rollback undocumented in man page Reviewed by: Igor Kozhukhov <igor.kozhukhov@nexenta.com> Reviewed by: Garrett D'Amore <garrett@nexenta.com> Reviewed by: Eric Schrock <eric.schrock@delphix.com> Approved by: Albert Lee <trisk@nexenta.com>
Diffstat (limited to 'usr/src/cmd/beadm')
-rw-r--r--usr/src/cmd/beadm/beadm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/cmd/beadm/beadm.c b/usr/src/cmd/beadm/beadm.c
index a3471a93a9..7918e00b55 100644
--- a/usr/src/cmd/beadm/beadm.c
+++ b/usr/src/cmd/beadm/beadm.c
@@ -495,12 +495,12 @@ print_fmt_nodes(const char *be_name, enum be_fmt be_fmt, boolean_t parsable,
struct hdr_info *hdr = NULL;
be_node_list_t *cur_be;
- if (!parsable) {
- hdr = hdrs + be_fmt;
- init_hdr_cols(be_fmt, hdr);
- count_widths(be_fmt, hdr, nodes);
+ hdr = hdrs + be_fmt;
+ init_hdr_cols(be_fmt, hdr);
+ count_widths(be_fmt, hdr, nodes);
+
+ if (!parsable)
print_hdr(hdr);
- }
for (cur_be = nodes; cur_be != NULL; cur_be = cur_be->be_next_node) {
char active[3] = "-\0";