OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../netkit-telnet/line-name.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- ./telnetd/utility.c~ Sun Dec 12 15:59:45 1999
  18. +++ ./telnetd/utility.c Sat Apr 8 11:04:09 2000
  19. @@ -467,11 +467,10 @@
  20. switch (*++cp) {
  21. case 't':
  22. - slash = strrchr(line, '/');
  23. - if (slash == NULL)
  24. + if ( strncmp(line,"/dev/",5) )
  25. putstr(line);
  26. else
  27. - putstr(slash+1);
  28. + putstr(line+5);
  29. break;
  30. case 'h':