Blame SOURCES/telnet-0.17-issue.patch

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