f3e6c7
--- netkit-telnet-0.17/telnetd/utility.c.issue	Sun Dec 12 09:59:45 1999
f3e6c7
+++ netkit-telnet-0.17/telnetd/utility.c	Wed Jul 18 11:14:11 2001
f3e6c7
@@ -460,13 +460,13 @@
f3e6c7
 	putlocation = where;
f3e6c7
 
f3e6c7
 	while (*cp) {
f3e6c7
-		if (*cp != '%') {
f3e6c7
+		if (*cp != '%' && *cp != '\\') {
f3e6c7
 			putchr(*cp++);
f3e6c7
 			continue;
f3e6c7
 		}
f3e6c7
 		switch (*++cp) {
f3e6c7
 
f3e6c7
-		case 't':
f3e6c7
+		case 'l':
f3e6c7
 			slash = strrchr(line, '/');
f3e6c7
 			if (slash == NULL)
f3e6c7
 				putstr(line);
f3e6c7
@@ -474,21 +474,28 @@
f3e6c7
 				putstr(slash+1);
f3e6c7
 			break;
f3e6c7
 
f3e6c7
+		case 'n':
f3e6c7
 		case 'h':
f3e6c7
 			putstr(editedhost);
f3e6c7
 			break;
f3e6c7
 
f3e6c7
+		case 't':
f3e6c7
 		case 'd':
f3e6c7
 			(void)time(&t);
f3e6c7
 			(void)strftime(db, sizeof(db), fmtstr, localtime(&t);;
f3e6c7
 			putstr(db);
f3e6c7
 			break;
f3e6c7
 
f3e6c7
+		case '\\':
f3e6c7
+			putchr('\\');
f3e6c7
+			break;
f3e6c7
+			  
f3e6c7
 		case '%':
f3e6c7
 			putchr('%');
f3e6c7
 			break;
f3e6c7
 
f3e6c7
 		case 'D':
f3e6c7
+		case 'o':
f3e6c7
 			{
f3e6c7
 				char	buff[128];
f3e6c7
 
f3e6c7
@@ -515,7 +522,7 @@
f3e6c7
 							c = fgetc(fp);
f3e6c7
 						} while (c != EOF && c != '\n');
f3e6c7
 						continue;
f3e6c7
-					} else if (c == '%') {
f3e6c7
+					} else if (c == '%' || c == '\\') {
f3e6c7
 						buff[0] = c;
f3e6c7
 						c = fgetc(fp);
f3e6c7
 						if (c == EOF) break;
f3e6c7
--- netkit-telnet-0.17/telnetd/issue.net.5.issue	Sun Jul 30 19:57:09 2000
f3e6c7
+++ netkit-telnet-0.17/telnetd/issue.net.5	Wed Jul 18 11:03:09 2001
f3e6c7
@@ -15,16 +15,17 @@
f3e6c7
 .Pa /etc/issue.net
f3e6c7
 is a text file which contains a message or system identification to be
f3e6c7
 printed before the login prompt of a telnet session. It may contain
f3e6c7
-various `%-char' sequences. The following sequences are supported by
f3e6c7
+various `%-char' (or, alternatively, '\\-char') sequences. The following
f3e6c7
+sequences are supported by
f3e6c7
 .Ic telnetd :
f3e6c7
 .Bl -tag -offset indent -compact -width "abcde"
f3e6c7
-.It %t
f3e6c7
+.It %l
f3e6c7
 - show the current tty
f3e6c7
-.It %h
f3e6c7
+.It %h, %n
f3e6c7
 - show the system node name (FQDN)
f3e6c7
-.It %D
f3e6c7
+.It %D, %o
f3e6c7
 - show the name of the NIS domain
f3e6c7
-.It %d
f3e6c7
+.It %d, %t
f3e6c7
 - show the current time and date
f3e6c7
 .It %s
f3e6c7
 - show the name of the operating system