]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/telnet-0.17-issue.patch
tor: Bump package version to 6 and fix backup.
[people/teissler/ipfire-2.x.git] / src / patches / telnet-0.17-issue.patch
CommitLineData
b52f6eb2
DW
1--- netkit-telnet-0.17/telnetd/utility.c.issue Sun Dec 12 09:59:45 1999
2+++ netkit-telnet-0.17/telnetd/utility.c Wed Jul 18 11:14:11 2001
3@@ -460,13 +460,13 @@
4 putlocation = where;
5
6 while (*cp) {
7- if (*cp != '%') {
8+ if (*cp != '%' && *cp != '\\') {
9 putchr(*cp++);
10 continue;
11 }
12 switch (*++cp) {
13
14- case 't':
15+ case 'l':
16 slash = strrchr(line, '/');
17 if (slash == NULL)
18 putstr(line);
19@@ -474,21 +474,28 @@
20 putstr(slash+1);
21 break;
22
23+ case 'n':
24 case 'h':
25 putstr(editedhost);
26 break;
27
28+ case 't':
29 case 'd':
30 (void)time(&t);
31 (void)strftime(db, sizeof(db), fmtstr, localtime(&t));
32 putstr(db);
33 break;
34
35+ case '\\':
36+ putchr('\\');
37+ break;
38+
39 case '%':
40 putchr('%');
41 break;
42
43 case 'D':
44+ case 'o':
45 {
46 char buff[128];
47
48@@ -515,7 +522,7 @@
49 c = fgetc(fp);
50 } while (c != EOF && c != '\n');
51 continue;
52- } else if (c == '%') {
53+ } else if (c == '%' || c == '\\') {
54 buff[0] = c;
55 c = fgetc(fp);
56 if (c == EOF) break;
57--- netkit-telnet-0.17/telnetd/issue.net.5.issue Sun Jul 30 19:57:09 2000
58+++ netkit-telnet-0.17/telnetd/issue.net.5 Wed Jul 18 11:03:09 2001
59@@ -15,16 +15,17 @@
60 .Pa /etc/issue.net
61 is a text file which contains a message or system identification to be
62 printed before the login prompt of a telnet session. It may contain
63-various `%-char' sequences. The following sequences are supported by
64+various `%-char' (or, alternatively, '\\-char') sequences. The following
65+sequences are supported by
66 .Ic telnetd :
67 .Bl -tag -offset indent -compact -width "abcde"
68-.It %t
69+.It %l
70 - show the current tty
71-.It %h
72+.It %h, %n
73 - show the system node name (FQDN)
74-.It %D
75+.It %D, %o
76 - show the name of the NIS domain
77-.It %d
78+.It %d, %t
79 - show the current time and date
80 .It %s
81 - show the name of the operating system