Comment 4 for bug 12337

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 02 Feb 2005 11:00:44 +0100
From: =?ISO-8859-1?Q?J=E9r=F4me_Schell?= <email address hidden>
To: <email address hidden>
Subject: Re: wvdial: doesn't initialize serial port correctly since last update

I confirm this bug.

Here is an interesting part of a strace of the execution of wvdial:

...
open("/dev/ttyS0", O_RDWR|O_NONBLOCK|O_NOCTTY|O_LARGEFILE) =3D 4
fcntl64(4, F_SETFD, FD_CLOEXEC) =3D 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 -opost -isig -icanon=20
-echo ...}) =3D 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 -opost -isig -icanon=20
-echo ...}) =3D 0
select(5, [4], [], [], {0, 0}) =3D 0 (Timeout)
ioctl(4, TIOCGSERIAL, 0xbfffe4a0) =3D 0
ioctl(4, TIOCSSERIAL, 0xbfffe460) =3D -1 EPERM (Operation not permi=
tted)
ioctl(4, TCFLSH, 0x2) =3D 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 -opost -isig -icanon=20
-echo ...}) =3D 0
ioctl(4, SNDCTL_TMR_START or TCSETS, {B38400 -opost -isig -icanon -echo=20
...}) =3D 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 -opost -isig -icanon=20
-echo ...}) =3D 0
close(4) =3D 0
write(3, "--> ", 4--> ) =3D 4
write(3, "Cannot open /dev/ttyS0: Cannot s"..., 63Cannot open=20
/dev/ttyS0: Cannot set information for serial port.) =3D 63write(3, "\n",=
 1
) =3D 1
unlink("/var/lock/LCK..ttyS0") =3D 0
....

So this seems to fail during an ioctl call giving an EPERM result.

(just to clarify, my user is part of dialout group so no problem of=20
access permission to /dev/ttyS0)
--=20
J=E9r=F4me