From 3f0ac51071d08c860a9ee70d8a6a4b830850e414 Mon Sep 17 00:00:00 2001 From: John Hood Date: Sat, 8 Apr 2017 13:29:41 -0400 Subject: [PATCH] Don't print /etc/motd on IllumOS. --- src/frontend/mosh-server.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/mosh-server.cc b/src/frontend/mosh-server.cc index e95ace8..349a129 100644 --- a/src/frontend/mosh-server.cc +++ b/src/frontend/mosh-server.cc @@ -554,7 +554,10 @@ static int run_server( const char *desired_ip, const char *desired_port, chdir_homedir(); if ( with_motd && (!motd_hushed()) ) { +#ifndef __sun +/* On illumos motd is printed by /etc/profile */ print_motd(); +#endif warn_unattached( utmp_entry ); }