Subject: bin/21515: %v in DEFAULT_IM won't work due to a typo
To: None <gnats-bugs@gnats.netbsd.org>
From: None <o.vd.linden@quicknet.nl>
List: netbsd-bugs
Date: 05/09/2003 21:49:27
>Number:         21515
>Category:       bin
>Synopsis:       %v in DEFAULT_IM won't work due to a typo
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 09 19:50:03 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Onno van der Linden
>Release:        NetBSD 1.6R
>Organization:
	
>Environment:
	
	
System: NetBSD sheep 1.6R NetBSD 1.6R (SHEEP) #22: Sat May 3 22:04:04 MEST 2003 root@sheep:/usr/src/sys/arch/i386/compile/SHEEP i386
Architecture: i386
Machine: i386
>Description:
 The use of %v in the DEFAULT_IM definition of telnetd cannot work
 because puts is used instead of putstr
>How-To-Repeat:
  Compile and use a telnetd with %v in DEFAULT_IM
>Fix:
*** /usr/src/libexec/telnetd/utility.c	Mon Sep 23 20:35:22 2002
--- /tmp/utility.c.new	Fri May  9 21:17:20 2003
***************
*** 506,512 ****
  			break;
  
  		case 'v':
! 			puts(utsinfo.version);
                          break;
  		}
  		cp++;
--- 506,512 ----
  			break;
  
  		case 'v':
! 			putstr(utsinfo.version);
                          break;
  		}
  		cp++;
>Release-Note:
>Audit-Trail:
>Unformatted: