ttys: Add 'ifexists' option to enable ttys only if exists Implement the 'ifexists' ttys option in init(8) to enable a tty only if it exists. This allows one to turn off getty for ttys that aren't present (e.g., on a headless system), and thus prevent getty error logs from filling up /var/log/messages; e.g., ------ Sep 20 09:13:07 microserver getty[236362]: open /dev/ttyv0: No such file or directory Sep 20 09:13:07 microserver getty[236404]: open /dev/ttyv0: No such file or directory Sep 20 09:13:07 microserver getty[236405]: open /dev/ttyv0: No such file or directory Sep 20 09:13:07 microserver getty[236406]: open /dev/ttyv0: No such file or directory Sep 20 09:13:07 microserver getty[236407]: open /dev/ttyv0: No such file or directory Sep 20 09:13:07 microserver init: getty repeating too quickly on port /dev/ttyv0, sleeping 30 secs ------ Update the ttys(5) and getttyent(3) man pages accordingly. The updates to ttys files will follow. Discussed-with: dillon Credit: https://reviews.freebsd.org/D10037
Move mailwrapper(8) examples from /etc/mail to /usr/share/examples.
openssh: Adjustments after import - Adjust README.DELETED and README.DRAGONFLY - Update openbsd-compat - Regen config.h , adjusting several defines manually because the configure script seems to not detect everything correctly. - Add some required source files to SRCS in various programs. Basic testing done: - sshd runs and works, i.e. accepts incoming connections, allows different auth methods (interactive, key). - X-Forwarding works. - Can ssh to other OSes.
libexec/dma: sync with upstream - fix parsing recipient from header - fix '-oi' cmdline option processing - add system hostname to received header comment - read the correct aliases file when invoked as "newaliases" - make verify_server_fingerprint() static - update manpage Discussed with: Sascha Wildner
talkd: Find users in more than one talk request. 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. Signed-off-by: Dan Cross <cross@gajendra.net>
libexec/dma: sync with upstream - avoid double free in reallocf() - fix use-after-free in deliver() - more meaningful reporting of server greeting errors - minor code cleanup