Summary: | [PATCH] Fix rfcomm_sppd(1) pseudo slave TTY mode | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Tobias Rehbein <tobias.rehbein> | ||||||||
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||||||
Status: | Closed FIXED | ||||||||||
Severity: | Affects Only Me | CC: | m_evmenkin | ||||||||
Priority: | Normal | ||||||||||
Version: | 10.0-BETA4 | ||||||||||
Hardware: | Any | ||||||||||
OS: | Any | ||||||||||
Attachments: |
|
Description
Tobias Rehbein
2013-12-08 16:20:01 UTC
Update: - Close file descriptors if strdup(3) call fails Thanks Tobias - it works beautifully. Please commit this fix as the current code is broken on FreeBSD >= 8. Thanks, Graham Created attachment 145607 [details]
rfcomm_sppd-to-pts-openpty.3.diff
Another update to the patch.
Print the name of the pts(4) to use on stdout. This way wrapper scripts/tools can easily pick it up.
A commit references this bug: Author: emax Date: Thu Oct 23 15:16:42 UTC 2014 New revision: 273548 URL: https://svnweb.freebsd.org/changeset/base/273548 Log: Change the code to use the openpty(3) API which uses the pts(4) driver instead of the pty(4) driver. PR: 184597 Submitted by: tobias.rehbein MFC after: 2 weeks Changes: head/usr.bin/bluetooth/rfcomm_sppd/Makefile head/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1 head/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c A commit references this bug: Author: emax Date: Thu Nov 6 16:32:01 UTC 2014 New revision: 274182 URL: https://svnweb.freebsd.org/changeset/base/274182 Log: MFC r273548 Change the code to use the openpty(3) API which uses the pts(4) driver instead of the pty(4) driver. PR: 184597 Submitted by: tobias.rehbein Changes: _U stable/10/ stable/10/usr.bin/bluetooth/rfcomm_sppd/Makefile stable/10/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1 stable/10/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c Committed as 273548. |