Make "ctladm islist" ignore unknown elements, so the old version
continues to work with newer kernel. Other ctladm(8) "*list" subcommands seem to already handle it in a reasonable way. MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
02aa7d7b57
commit
b56a6368c7
@ -3559,8 +3559,12 @@ cctl_islist_end_element(void *user_data, const char *name)
|
||||
} else if (strcmp(name, "connection") == 0) {
|
||||
islist->cur_conn = NULL;
|
||||
} else if (strcmp(name, "ctlislist") == 0) {
|
||||
} else
|
||||
errx(1, "unknown element %s", name);
|
||||
/* Nothing. */
|
||||
} else {
|
||||
/*
|
||||
* Unknown element; ignore it for forward compatiblity.
|
||||
*/
|
||||
}
|
||||
|
||||
free(str);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user