summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1998-08-02 22:30:45 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1998-08-02 22:30:45 +0000
commit1d7f44a753a0c45e45f64aa12d70b9ddae29d768 (patch)
tree7d56cd942bf91ad34409b1fd5841b60e0fa4be01
parent7b0a769146e55626dcb495b3d31bf9d956c1ada9 (diff)
Make zctl unhide set a minimum exposure of realm-visible.
-rw-r--r--clients/zctl/zctl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/clients/zctl/zctl.c b/clients/zctl/zctl.c
index 1318d10..6627f95 100644
--- a/clients/zctl/zctl.c
+++ b/clients/zctl/zctl.c
@@ -377,11 +377,14 @@ do_hide(argc,argv)
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;
+ if (!exp_level || exp_level == EXPOSE_NONE
+ || exp_level == EXPOSE_OPSTAFF)
+ exp_level = EXPOSE_REALMVIS;
} else {
exp_level = EXPOSE_OPSTAFF;
}