summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/zlogin/zlogin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/cmd/zlogin/zlogin.c b/usr/src/cmd/zlogin/zlogin.c
index c829459e50..b48c446ffd 100644
--- a/usr/src/cmd/zlogin/zlogin.c
+++ b/usr/src/cmd/zlogin/zlogin.c
@@ -1878,7 +1878,8 @@ zlog_mode_logging(char *zonename)
goto done;
while (zonecfg_getattrent(handle, &attr) == Z_OK) {
if (strcmp("zlog-mode", attr.zone_attr_name) == 0) {
- if (strncmp("log", attr.zone_attr_value, 3) == 0)
+ if (strncmp("log", attr.zone_attr_value, 3) == 0 ||
+ strncmp("nolog", attr.zone_attr_value, 5) == 0)
lm = B_TRUE;
break;
}