From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 4CDAE3858D1E; Tue, 29 Nov 2022 12:54:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4CDAE3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669726477; bh=BnLq4FZNWRYcX1pAw4krEDf2J8vUMktrfHqKi/ZIQik=; h=From:To:Subject:Date:From; b=MfAONSNb0x10eTd4qut4q/vXvfgnQyADFdAPlnNj1dNO4uVu/8rB7l+CQGDYbJd9G ZMmb4ccApZdmijYtbuvJJKHDlfzwIPpdVgBdmE4Iiv9wkRiq1ISLonTH7Ly2xLn52d jOL9SSXgDmPBbSy32ybWRi++ggD5s5NCnD05ezn4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: serial: Fix a copy-paste error in DTR setup X-Act-Checkin: newlib-cygwin X-Git-Author: Carlo Bramini <30959007+carlo-bramini@users.noreply.github.com> X-Git-Refname: refs/heads/master X-Git-Oldrev: 17761a8ef493351cf0678e24975839e6b30f6736 X-Git-Newrev: a263fe0b268580273c1adc4b1bad256147990222 Message-Id: <20221129125437.4CDAE3858D1E@sourceware.org> Date: Tue, 29 Nov 2022 12:54:37 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Da263fe0b268= 580273c1adc4b1bad256147990222 commit a263fe0b268580273c1adc4b1bad256147990222 Author: Carlo Bramini <30959007+carlo-bramini@users.noreply.github.com> Date: Tue Nov 29 10:02:43 2022 +0100 Cygwin: serial: Fix a copy-paste error in DTR setup =20 In commit 2dab880c963ce0204c3513d664f610b587a3e6a6 I did a mistake when I copied the new fhandler_serial::switch_modem_lines() from my modified 3.3.6 branch to the current master and I left a copy paste error. This patch fixes that error. =20 Fixes: 2dab880c963c ("Cygwin: fix TIOCMBIS/TIOCMBIC not working when us= ing usbser.sys") Diff: --- winsup/cygwin/fhandler/serial.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/fhandler/serial.cc b/winsup/cygwin/fhandler/seri= al.cc index 58a8df677..e04f8f263 100644 --- a/winsup/cygwin/fhandler/serial.cc +++ b/winsup/cygwin/fhandler/serial.cc @@ -411,10 +411,10 @@ fhandler_serial::switch_modem_lines (int set, int clr) dcb.fRtsControl =3D RTS_CONTROL_DISABLE; =20 if (set & TIOCM_DTR) - dcb.fRtsControl =3D DTR_CONTROL_ENABLE; + dcb.fDtrControl =3D DTR_CONTROL_ENABLE; else if (clr & TIOCM_DTR) - dcb.fRtsControl =3D DTR_CONTROL_DISABLE; + dcb.fDtrControl =3D DTR_CONTROL_DISABLE; =20 if (!SetCommState(get_handle(), &dcb)) {