Blame SOURCES/telnet-0.17-issue.patch

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