From 8d55abeae716c5dab7e2237dac09e0c374fdbd85 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 13 Aug 1998 23:49:00 +0000 Subject: Revert the 8.2 behavior change in "zctl unhide", going back to the old method of just setting the exposure to realm-visible. Setting it any higher causes login notices to be sent, which annoys people. Yay stupid protocols. Factual point: the change in rev 1.26 had no effect (comparing locations against the string constants doesn't work, it seems). --- clients/zctl/zctl.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'clients') 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; -- cgit v1.2.3