diff options
Diffstat (limited to 'term-utils')
-rw-r--r-- | term-utils/wall.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/term-utils/wall.c b/term-utils/wall.c index 6dec05c12..a9dde15be 100644 --- a/term-utils/wall.c +++ b/term-utils/wall.c @@ -147,6 +147,9 @@ static int is_gr_member(const char *login, const struct group_workspace *buf) int rc; pw = getpwnam(login); + if (!pw) + return 0; + if (buf->requested_group == pw->pw_gid) return 1; |