Date: Thu, 15 Jan 2015 01:10:30 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 196742] new feature for syslogd - obey mesg flag Message-ID: <bug-196742-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196742 Bug ID: 196742 Summary: new feature for syslogd - obey mesg flag Product: Base System Version: 10.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: jef@mail.acme.com Created attachment 151651 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151651&action=edit context diff for 10.0-R /usr/src/usr.sbin/syslogd/syslogd.c Currently, when syslogd sends a message to a named user, all of that user's logged-in sessions receive the message. This can be annoying. It would be preferable to be able to designate one particular session to receive such messages. This patch changes syslogd so that when sending a message to a named user, it obeys each session's mesg y/n setting. Sessions with mesg y get the message, sessions with mesg n do not. The patch does not affect messages to everyone ("*"), those still go through regardless of mesg settings. Please find attached a context diff against the 10.0-RELEASE version of /usr/src/usr.sbin/syslogd/syslogd.c - it adds a wrapper routine that checks the mesg flag, and calls it in the appropriate place. I have been using this patch since FreeBSD 4 in 2004, and it seems like time to try and get it into the release. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196742-8>