Mercurial > illumos > illumos-gate
changeset 9954:26dc94cffbd1
6850112 zonecfg verify should verify the native brand type
author | Edward Pilatowicz <Edward.Pilatowicz@Sun.COM> |
---|---|
date | Tue, 23 Jun 2009 10:45:28 -0700 |
parents | b354e1e8b863 |
children | 0df5d471a4c5 |
files | usr/src/cmd/zonecfg/zonecfg.c |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/zonecfg/zonecfg.c Tue Jun 23 10:40:30 2009 +0200 +++ b/usr/src/cmd/zonecfg/zonecfg.c Tue Jun 23 10:45:28 2009 -0700 @@ -5540,11 +5540,9 @@ zone_perror(zone, err, B_TRUE); return; } - if (strcmp(brand, NATIVE_BRAND_NAME) != 0) { - if ((err = brand_verify(handle)) != Z_OK) { - zone_perror(zone, err, B_TRUE); - return; - } + if ((err = brand_verify(handle)) != Z_OK) { + zone_perror(zone, err, B_TRUE); + return; } if (zonecfg_get_iptype(handle, &iptype) != Z_OK) {