--- ./src/login.c.orig	2014-05-08 03:43:12.000000000 -0500
+++ ./src/login.c	2018-11-07 16:41:10.580649951 -0600
@@ -743,6 +743,15 @@
 
 		/* Make the login prompt look like we want it */
 		if (gethostname (hostn, sizeof (hostn)) == 0) {
+			/* Trim away everything after the first '.': */
+			int i = 0;
+			while (hostn[i] != '\0' && i < sizeof(hostn) - 1) {
+				if (hostn[i] == '.') {
+					hostn[i] = '\0';
+					break;
+				}
+				i++;
+			}
 			snprintf (loginprompt,
 			          sizeof (loginprompt),
 			          _("%s login: "), hostn);
