From: Filippo Giunchedi <filippo@debian.org>
To: 322732@bugs.debian.org
Cc: 322732-submitter@bugs.debian.org, bluez-devel@lists.sourceforge.net
Subject: Bug#322732: [Pkg-bluetooth-maintainers] Bug#322732: [Bluez-devel] more on this bug (was: rfcomm bind fails with obscure error message)
Date: Sun, 4 Jun 2006 17:15:05 +0200 [thread overview]
Message-ID: <20060604151505.GA16780@esaurito.net> (raw)
In-Reply-To: <1148908581.31689.35.camel@localhost>
[-- Attachment #1.1.1: Type: text/plain, Size: 381 bytes --]
On Mon, May 29, 2006 at 03:16:21PM +0200, Marcel Holtmann wrote:
> > comments?
>
> check for EOPNOTSUPP error code and only then print this error.
allright, I fixed this with the attached patch
thanks,
filippo
--
Filippo Giunchedi - http://esaurito.net
PGP key: 0x6B79D401
random quote follows:
Either this man is dead or my watch has stopped.
-- Groucho Marx
[-- Attachment #1.1.2: 010_rfcomm_tty.patch --]
[-- Type: text/plain, Size: 426 bytes --]
--- rfcomm/main.c (revision 154)
+++ rfcomm/main.c (working copy)
@@ -172,8 +172,12 @@
req.channel = 1;
}
- if ((err = ioctl(ctl, RFCOMMCREATEDEV, &req)) < 0 )
- perror("Can't create device");
+ if ((err = ioctl(ctl, RFCOMMCREATEDEV, &req)) < 0 ) {
+ if (err == EOPNOTSUPP)
+ fprintf(stderr, "RFCOMM TTY support not available\n");
+ else
+ perror("Can't create device");
+ }
return err;
}
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 211 bytes --]
_______________________________________________
Pkg-bluetooth-maintainers mailing list
Pkg-bluetooth-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-bluetooth-maintainers
next prev parent reply other threads:[~2006-06-04 15:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-19 20:48 [Bluez-devel] more on this bug (was: rfcomm bind fails with obscure error message) Filippo Giunchedi
2006-05-29 13:16 ` [Pkg-bluetooth-maintainers] Bug#322732: " Marcel Holtmann
2006-06-04 15:15 ` Filippo Giunchedi [this message]
2006-06-04 15:46 ` Bug#322732: [Bluez-devel] [Pkg-bluetooth-maintainers] Bug#322732: " Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060604151505.GA16780@esaurito.net \
--to=filippo@debian.org \
--cc=322732-submitter@bugs.debian.org \
--cc=322732@bugs.debian.org \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).