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