summaryrefslogtreecommitdiff
path: root/usr/src/cmd/zoneadm
diff options
context:
space:
mode:
authorjv227347 <Jordan.Vaughan@Sun.com>2008-11-10 12:08:25 -0800
committerjv227347 <Jordan.Vaughan@Sun.com>2008-11-10 12:08:25 -0800
commit2ad45a84935be6f65ad11ebefa3108f8b882a1c7 (patch)
tree505a2f1593c51c8e7dc43c5e21b1b2284b79ca92 /usr/src/cmd/zoneadm
parentbbd65dd21832305e14110aacf248e9081638d663 (diff)
downloadillumos-gate-2ad45a84935be6f65ad11ebefa3108f8b882a1c7.tar.gz
6400006 libzonecfg.so.1 zonecfg_strerror() doesn't handle Z_SYSTEM
6579865 zone_rctl_name incorrectly used like a char * in libzonecfg.c 6554794 zoneadm.c: return value of strcmp(3C) compared with NULL pointer
Diffstat (limited to 'usr/src/cmd/zoneadm')
-rw-r--r--usr/src/cmd/zoneadm/zoneadm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/zoneadm/zoneadm.c b/usr/src/cmd/zoneadm/zoneadm.c
index 12d0dd6711..fa70490978 100644
--- a/usr/src/cmd/zoneadm/zoneadm.c
+++ b/usr/src/cmd/zoneadm/zoneadm.c
@@ -5590,7 +5590,7 @@ main(int argc, char **argv)
* brand type and determine whether it is native or not.
*/
if ((target_zone != NULL) &&
- (strcmp(target_zone, GLOBAL_ZONENAME) != NULL)) {
+ (strcmp(target_zone, GLOBAL_ZONENAME) != 0)) {
if (zone_get_brand(target_zone, target_brand,
sizeof (target_brand)) != Z_OK) {
zerror(gettext("missing or invalid brand"));