diff options
author | nicm <nicm> | 2023-04-17 17:58:35 +0000 |
---|---|---|
committer | nicm <nicm> | 2023-04-17 17:58:35 +0000 |
commit | bcafe51378b1b16a9a9429d9ad074d5a5d700144 (patch) | |
tree | 08cbb706720715865d03dd325588ae974041fce5 /file.c | |
parent | 280fe77eddc877f3d0a58ad3195a1e5856ac91c4 (diff) |
Make the check if printing is allowed the same as writing which is less
confusing.
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -177,9 +177,9 @@ file_fire_read(struct client_file *cf) int file_can_print(struct client *c) { - if (c == NULL) - return (0); - if (c->session != NULL && (~c->flags & CLIENT_CONTROL)) + if (c == NULL || + (c->flags & CLIENT_ATTACHED) || + (c->flags & CLIENT_CONTROL)) return (0); return (1); } |