Blame SOURCES/telnet-0.17-issue.patch

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