]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix handling of pts(4) device names in comsat(8). Also catch fork() errors.
authored <ed@FreeBSD.org>
Sat, 17 Jan 2009 15:56:38 +0000 (15:56 +0000)
committered <ed@FreeBSD.org>
Sat, 17 Jan 2009 15:56:38 +0000 (15:56 +0000)
commitdea83348494de12395a3332e12f74e329a43f33e
tree9d69c5a34b1fced444d5a58f33276f1b7428c1e0
parentdb7a282a152a672ac4731ccf8e513ee15121c970
Fix handling of pts(4) device names in comsat(8). Also catch fork() errors.

Pseudo-terminals allocated with posix_openpt(2) will have more slashes
in their path names than comsat(8) allows, so allow slashes when the
character device name starts with "pts/".

This patch is loosely based on NetBSD's changes, revision 1.33. Because
it also included the changes to fork(), I imported them here as well.
Maybe we could import even more fixes from the other BSD's?

Original commit message from the NetBSD folks:

PR/30170: Markus W Kilbinger: src/libexec/comsat complains
about: '/' in "/dev/pts/1"

Reported by: Robert Huff <roberthuff rcn com>
libexec/comsat/comsat.c