Message-ID: <email address hidden>
Date: Sat, 5 Feb 2005 03:35:24 -0800
From: Steve Langasek <email address hidden>
To: <email address hidden>
Subject: Re: wvdial: doesn't initialize serial port correctly since last update
The attached patch fixes WvModem::setup_modem to not treat it as a fatal
error when non-root users are unable to use the TIOCSSERIAL ioctl.
Incidentally, the other use of HAVE_LINUX_SERIAL_H in streams/wvmodem.cc
looks quite broken: there is no reason that declaration of the cfmakeraw()
function should be correlated with the presence of the linux/serial.h
header. Please add a proper autoconf check to detect cfmakeraw() support
separately instead of tacking it onto the check for a completely unrelated
header.
Message-ID: <email address hidden>
Date: Sat, 5 Feb 2005 03:35:24 -0800
From: Steve Langasek <email address hidden>
To: <email address hidden>
Subject: Re: wvdial: doesn't initialize serial port correctly since last update
--C7Ke/meiCZutM6I/ "SBT+cnFS/ G3NVgv4" Disposition: inline
Content-Type: multipart/mixed; boundary=
Content-
--SBT+cnFS/G3NVgv4 Disposition: inline Transfer- Encoding: quoted-printable
Content-Type: text/plain; charset=us-ascii
Content-
Content-
tags 292618 +patch
thanks
The attached patch fixes WvModem: :setup_ modem to not treat it as a fatal
error when non-root users are unable to use the TIOCSSERIAL ioctl.
Incidentally, the other use of HAVE_LINUX_SERIAL_H in streams/wvmodem.cc
looks quite broken: there is no reason that declaration of the cfmakeraw()
function should be correlated with the presence of the linux/serial.h
header. Please add a proper autoconf check to detect cfmakeraw() support
separately instead of tacking it onto the check for a completely unrelated
header.
--=20
Steve Langasek
postmodern programmer
--SBT+cnFS/G3NVgv4 Disposition: attachment; filename= "wvstreams- 292618. diff" Transfer- Encoding: quoted-printable
Content-Type: text/plain; charset=us-ascii
Content-
Content-
diff -u wvstreams- 4.0.1/debian/ changelog wvstreams- 4.0.1/debian/ changelog 4.0.1/debian/ changelog 4.0.1/debian/ changelog :setup_ modem to not expect TIOCSSERIAL to work if we're not 4.0.1.orig/ streams/ wvmodem. cc 4.0.1/streams/ wvmodem. cc closing_ wait =3D ASYNC_CLOSING_ WAIT_NONE; closing_ wait2 =3D ASYNC_CLOSING_ WAIT_NONE;
--- wvstreams-
+++ wvstreams-
@@ -1,3 +1,12 @@
+wvstreams (4.0.1-1.3) unstable; urgency=3Dhigh
+
+ * Non-maintainer upload.
+ * High-urgency upload for sarge-targetted RC bugfix
+ * Fix WvModem:
+ root. (Closes: #292618)
+
+ -- Steve Langasek <email address hidden> Sat, 5 Feb 2005 02:45:25 -0800
+
wvstreams (4.0.1-1.2) unstable; urgency=3Dhigh
=20
* NMU with maintainer's permission
only in patch2:
unchanged:
--- wvstreams-
+++ wvstreams-
@@ -204,7 +204,7 @@
sinfo.
sinfo.
=20
- if (ioctl(getrfd(), TIOCSSERIAL, &sinfo) < 0)=20
+ if (ioctl(getrfd(), TIOCSSERIAL, &sinfo) < 0 && getuid() =3D=3D 0)=20
{
seterr("Cannot set information for serial port.");
return;
--SBT+cnFS/ G3NVgv4- -
--C7Ke/meiCZutM6I/ pgp-signature; name="signature .asc" Description: Digital signature Disposition: inline
Content-Type: application/
Content-
Content-
-----BEGIN PGP SIGNATURE-----
ufymYLloRAh4bAJ 0c2qiw0aHkEcKr2 saRwDbj4uJvaQCe IzgL pSDYY+L8=
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFCBK95KN6
CydteLyj39pfG2L
=1ctl
-----END PGP SIGNATURE-----
--C7Ke/ meiCZutM6I/ --