diff options
author | Greg Hudson <ghudson@mit.edu> | 1998-08-13 23:49:00 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 1998-08-13 23:49:00 +0000 |
commit | 8d55abeae716c5dab7e2237dac09e0c374fdbd85 (patch) | |
tree | d96d8b943bd34b4db6c02c6c3117c996ffd4d31c /clients/zctl | |
parent | 1d7f44a753a0c45e45f64aa12d70b9ddae29d768 (diff) |
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).
Diffstat (limited to 'clients/zctl')
-rw-r--r-- | clients/zctl/zctl.c | 14 |
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; |