[DragonFlyBSD - Submit #3261] (Resolved) [PATCH] talkd: Find users for more than one talk request.

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Fri Jan 15 16:47:35 PST 2021

Issue #3261 has been updated by dillon.

Status changed from New to Resolved
Assignee set to dillon

Committed c420de58e07cf2a47

Submit #3261: [PATCH] talkd: Find users for more than one talk request.

* Author: dancrossnyc
* Status: Resolved
* Priority: Normal
* Assignee: dillon
* Category: Userland
* Target version: Latest stable
talkd was written to use `utmpentry` from `who`, which
caches the results of read the `utmpx` file.  However,
talkd is usually invoked from inetd `wait` mode; it's
possible that a user might login after `talkd` starts;
with the cached utmpx data, one can't `talk` to that

Further, consumption of the utmp data nulls it out for
subsequent requests.  The result is that the first talk
succeeds, but subsequent requests fail.

The fix is to avoid using the `utmpentry` machinery,
and just read `utmp` directly every time we need to.

0001-talkd-Find-users-in-more-than-one-talk-request.patch (4.78 KB)

You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account

More information about the Submit mailing list