aboutsummaryrefslogtreecommitdiff
path: root/bin/stty
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1996-12-07 11:07:20 +0000
committerBruce Evans <bde@FreeBSD.org>1996-12-07 11:07:20 +0000
commita68e018a5e4fb252e4636e5b987a7a45a62baef4 (patch)
tree1c7ac9571f783ac9e2a8a8a11a85387fdf74be7b /bin/stty
parent0362d7d7377963bf24585a7f40a20dd8b727d23c (diff)
downloadsrc-a68e018a5e4fb252e4636e5b987a7a45a62baef4.tar.gz
src-a68e018a5e4fb252e4636e5b987a7a45a62baef4.zip
Fixed `stty [-]extproc'. It set extproc to a semi-random state (always
off if there are no other options, always (?) on if another option that changes the state is processed earlier).
Notes
Notes: svn path=/head/; revision=20190
Diffstat (limited to 'bin/stty')
-rw-r--r--bin/stty/key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/stty/key.c b/bin/stty/key.c
index 362b6f110be4..58aa60e002b2 100644
--- a/bin/stty/key.c
+++ b/bin/stty/key.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: key.c,v 1.3 1995/03/19 13:29:25 joerg Exp $
+ * $Id: key.c,v 1.4 1995/04/28 19:29:29 ache Exp $
*/
#ifndef lint
@@ -192,7 +192,7 @@ f_extproc(ip)
struct info *ip;
{
- if (ip->set) {
+ if (!ip->off) {
int tmp = 1;
(void)ioctl(ip->fd, TIOCEXT, &tmp);
} else {