Blame SOURCES/telnet-0.17-issue.patch

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