initial checkin of new hdw-linux development cvs repository
[hdw-linux/hdw-linux.git] / packages / net / netkit-telnet / line-name.patch
1 # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
2
3 # ROCK Linux: rock-src/package/base/netkit-telnet/line-name.patch
4 # ROCK Linux is Copyright (C) 1998 - 2002 Clifford Wolf
5
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version. A copy of the GNU General Public
10 # License can be found at Documentation/COPYING.
11
12 # Many people helped and are helping developing ROCK Linux. Please
13 # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
14 # file for details.
15
16 # --- ROCK-COPYRIGHT-NOTE-END ---
17
18 --- ./telnetd/utility.c~        Sun Dec 12 15:59:45 1999
19 +++ ./telnetd/utility.c Sat Apr  8 11:04:09 2000
20 @@ -467,11 +467,10 @@
21                 switch (*++cp) {
22  
23                 case 't':
24 -                       slash = strrchr(line, '/');
25 -                       if (slash == NULL)
26 +                       if ( strncmp(line,"/dev/",5) )
27                                 putstr(line);
28                         else
29 -                               putstr(slash+1);
30 +                               putstr(line+5);
31                         break;
32  
33                 case 'h':