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

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Wed Jan 13 16:02:37 PST 2021


Issue #3261 has been reported by dancrossnyc.

----------------------------------------
Submit #3261: [PATCH] talkd: Find users for more than one talk request.
http://bugs.dragonflybsd.org/issues/3261

* Author: dancrossnyc
* Status: New
* Priority: Normal
* Assignee: 
* 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
user.

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.

---Files--------------------------------
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