diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-02-03 10:15:32 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-02-03 10:15:32 +0800 |
commit | 48b395298bc02af4eb6b27444502a0f4cf5f3da4 (patch) | |
tree | dcda195afe6ca70d08950c334e3da22949a5641a /sysutils | |
parent | ac61c4a89d88768d5e6a53a9a64d6b9ba99cb8b9 (diff) | |
download | marcuscom-ports-48b395298bc02af4eb6b27444502a0f4cf5f3da4.tar marcuscom-ports-48b395298bc02af4eb6b27444502a0f4cf5f3da4.tar.gz marcuscom-ports-48b395298bc02af4eb6b27444502a0f4cf5f3da4.tar.bz2 marcuscom-ports-48b395298bc02af4eb6b27444502a0f4cf5f3da4.tar.lz marcuscom-ports-48b395298bc02af4eb6b27444502a0f4cf5f3da4.tar.xz marcuscom-ports-48b395298bc02af4eb6b27444502a0f4cf5f3da4.tar.zst marcuscom-ports-48b395298bc02af4eb6b27444502a0f4cf5f3da4.zip |
Open VTYs with O_NOCTTY.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10329 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/vty-checker/Makefile | 4 | ||||
-rw-r--r-- | sysutils/vty-checker/src/vty-checker.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sysutils/vty-checker/Makefile b/sysutils/vty-checker/Makefile index 8d86c87a4..e554cdfc8 100644 --- a/sysutils/vty-checker/Makefile +++ b/sysutils/vty-checker/Makefile @@ -3,13 +3,13 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom$ +# $MCom: ports/sysutils/vty-checker/Makefile,v 1.1 2008/02/02 23:58:48 marcus Exp $ # # This port is self contained in the src directory. # PORTNAME= vty-checker -PORTVERSION= 1.0 +PORTVERSION= 1.0.1 CATEGORIES= sysutils MASTER_SITES= # none DISTFILES= # none diff --git a/sysutils/vty-checker/src/vty-checker.c b/sysutils/vty-checker/src/vty-checker.c index 866997018..0a0b0090b 100644 --- a/sysutils/vty-checker/src/vty-checker.c +++ b/sysutils/vty-checker/src/vty-checker.c @@ -71,7 +71,7 @@ main(int argc, char **argv) ty_devptr = ttydev + 6; (void)strlcat(ty_devptr, t->ty_name, PATH_MAX); - if ((fd = open(ttydev, O_RDONLY)) < 0) { + if ((fd = open(ttydev, O_RDONLY | O_NOCTTY)) < 0) { if (debug) { (void)fprintf(stderr, "Failed to open %s: %s\n", |