Package: picocom Version: 1.4-2 Severity: important Tags: patch
Selecting odd parity '-p o' does not work. This is due to a bug in the code. This bug report contains a patch that corrects the problem. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.25 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages picocom depends on: ii libc6 2.7-11 GNU C Library: Shared libraries picocom recommends no packages. picocom suggests no packages. -- no debconf information
diff -Naur picocom-1.4-orig/term.c picocom-1.4/term.c --- picocom-1.4-orig/term.c 2004-08-12 08:45:57.000000000 +0000 +++ picocom-1.4/term.c 2008-07-28 10:35:14.000000000 +0000 @@ -683,7 +683,7 @@ tiop->c_cflag = (tiop->c_cflag & ~(PARENB | PARODD)) | PARENB; break; case P_ODD: - tiop->c_cflag = (tiop->c_cflag & ~(PARENB | PARODD)) | PARODD; + tiop->c_cflag = (tiop->c_cflag & ~(PARENB | PARODD)) | PARENB | PARODD; break; case P_NONE: tiop->c_cflag = (tiop->c_cflag & ~(PARENB | PARODD));