From 1d7f44a753a0c45e45f64aa12d70b9ddae29d768 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sun, 2 Aug 1998 22:30:45 +0000 Subject: Make zctl unhide set a minimum exposure of realm-visible. --- clients/zctl/zctl.c | 7 +++++-- 1 file 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; } -- cgit v1.2.3