diff options
| author | skurtz97 <skurtz97@users.noreply.github.com> | 2026-11-25 16:21:17 -0600 |
|---|---|---|
| committer | skurtz97 <skurtz97@users.noreply.github.com> | 2026-11-25 16:21:17 -0600 |
| commit | ddeb7f2effb7f7a3ff3b183a741121e21e409f45 (patch) | |
| tree | a16d27c90078d2a1c463a58b43f1c2642cfd1181 | |
| parent | da754a07c41d73012eb1121f13bfeb1814bc5e59 (diff) | |
| download | ztop-ddeb7f2effb7f7a3ff3b183a741121e21e409f45.tar.gz | |
zvslist: drop the TESTAUTH gate, it reported 4 on an authorized module
| -rw-r--r-- | src/ztop.c | 14 | ||||
| -rw-r--r-- | src/zvslist.s | 5 |
2 files changed, 3 insertions, 16 deletions
@@ -138,17 +138,9 @@ int main(int argc, char **argv) { } struct zreq req = {.area = area, .len = WORK, .wk = work, .rc = -1}; - int stub = zvslist(&req); - if (stub != 0) { - fprintf(stderr, "ztop: the stub returned %d for area %d (auth %d)\n", - stub, area, req.auth); - return 2; - } - if (req.auth != 0) { - fprintf(stderr, "ztop: not APF-authorized (TESTAUTH %d): VSMLIST " - "needs extattr +a and AC(1)\n", req.auth); - return 1; - } + /* The stub's return value is not usable through OS linkage; req.rc + * is what tells whether the service ran. */ + (void)zvslist(&req); if (req.rc != 0) { fprintf(stderr, "ztop: VSMLIST returned %d\n", req.rc); return 1; diff --git a/src/zvslist.s b/src/zvslist.s index c619f6b..a48ad32 100644 --- a/src/zvslist.s +++ b/src/zvslist.s @@ -44,11 +44,6 @@ zvslist RMODE 24 ST 10,8(,13) LR 13,10 ST 2,16(,2) self, for the caller's information - TESTAUTH FCTN=1 is this task authorized at all - LR 2,11 TESTAUTH owns R0, R1 and R15 - ST 15,168(,2) auth code: 0 = authorized - LTR 15,15 - BNZ OUT not authorized, skip the call L 3,0(2) area L 5,4(2) work area length L 4,8(2) work area address |
