summaryrefslogtreecommitdiff
path: root/clients/zctl
diff options
context:
space:
mode:
Diffstat (limited to 'clients/zctl')
-rw-r--r--clients/zctl/zctl.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/clients/zctl/zctl.c b/clients/zctl/zctl.c
index 6627f95..c3dfbf1 100644
--- a/clients/zctl/zctl.c
+++ b/clients/zctl/zctl.c
@@ -376,18 +376,10 @@ do_hide(argc,argv)
fprintf(stderr, "Usage: %s\n",argv[0]);
return;
}
- if (!strcmp(argv[0],"unhide")) {
- /* Reset default exposure, or set exposure to realm-
- * visible if the default exposure is less than that. */
- exp_level = ZGetVariable("exposure");
- if (exp_level)
- exp_level = ZParseExposureLevel(exp_level);
- if (!exp_level || exp_level == EXPOSE_NONE
- || exp_level == EXPOSE_OPSTAFF)
- exp_level = EXPOSE_REALMVIS;
- } else {
+ if (!strcmp(argv[0],"unhide"))
+ exp_level = EXPOSE_REALMVIS;
+ else
exp_level = EXPOSE_OPSTAFF;
- }
if ((retval = ZSetLocation(exp_level)) != ZERR_NONE)
ss_perror(sci_idx,retval,"while changing exposure status");
return;