Comment 9 for bug 12337

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

Message-Id: <email address hidden>
Date: Wed, 2 Feb 2005 08:03:31 -0500
From: Patrick Patterson <email address hidden>
To: =?iso-8859-1?q?J=E9r=F4me_Schell?= <email address hidden>,
 <email address hidden>
Subject: Re: Bug#292618: wvdial: doesn't initialize serial port correctly since last update

Can you double check what the permissions are for your /dev/ttyS0?

Also - are you using udev or any such thing?=20

Does this work when you run wvdial as root?

On Wednesday 02 February 2005 05:00, J=E9r=F4me Schell wrote:
> 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
> -echo ...}) =3D 0
> ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 -opost -isig -icanon
> -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
> permitted) ioctl(4, TCFLSH, 0x2) =3D 0
> ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 -opost -isig -icanon
> -echo ...}) =3D 0
> ioctl(4, SNDCTL_TMR_START or TCSETS, {B38400 -opost -isig -icanon -echo
> ...}) =3D 0
> ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 -opost -isig -icanon
> -echo ...}) =3D 0
> close(4) =3D 0
> write(3, "--> ", 4--> ) =3D 4
> write(3, "Cannot open /dev/ttyS0: Cannot s"..., 63Cannot open
> /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
> access permission to /dev/ttyS0)