Commit ed8a62e2 authored by Sergei Golovan's avatar Sergei Golovan Committed by Sergei Golovan

* Added a patch by Georg-Johann Lay which now properly checks for EOF

    and doesn't lose input when there are some characters in the input buffer
    and EOF flag happens.
  * Bumped standards version to 4.0.0.
parent 8ac7a61a
expect (5.45-8) UNRELEASED; urgency=medium
expect (5.45-8) unstable; urgency=medium
* NOT RELEASED YET
* Added a patch by Georg-Johann Lay which now properly checks for EOF
and doesn't lose input when there are some characters in the input buffer
and EOF flag happens.
* Bumped standards version to 4.0.0.
-- Sergei Golovan <sgolovan@debian.org> Fri, 23 Oct 2015 11:38:11 +0300
-- Sergei Golovan <sgolovan@debian.org> Sat, 15 Jul 2017 08:21:00 +0300
expect (5.45-7) unstable; urgency=medium
......
......@@ -5,7 +5,7 @@ Maintainer: Sergei Golovan <sgolovan@debian.org>
Build-Depends: debhelper (>= 9.0.0), dpkg-dev (>= 1.16.1~), autotools-dev,
autoconf, tcl8.6-dev
Build-Conflicts: autoconf2.13
Standards-Version: 3.9.6
Standards-Version: 4.0.0
Homepage: http://sourceforge.net/projects/expect/
Package: expect
......
Author: Upstream
Description: Report and fix both by Nils Carlson.
Author: Georg-Johann Lay
Description: Enhancement of a bugfix by Nils Carlson.
Replaced a cc==0 check with proper Tcl_Eof() check.
Last-Modified: Fri, 23 Oct 2015 11:09:07 +0300
Last-Modified: Fri, 14 Jul 2017 17:07:47 +0300
Bug: http://sourceforge.net/p/expect/patches/18/
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799301
See-Also: https://gcc.gnu.org/ml/gcc/2017-06/msg00000.html
--- a/expect.c
+++ b/expect.c
......@@ -17,7 +18,7 @@ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799301
- /* but it should be looked at again anyway". */
- if (cc == 0) {
+
+ if (Tcl_Eof(esPtr->channel)) {
+ if (cc == 0 && Tcl_Eof(esPtr->channel)) {
cc = EXP_EOF;
- } else if (cc > 0) {
- /* successfully read data */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment