summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_cons.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-07-27 17:04:56 +0000
committerphk <phk@FreeBSD.org>2003-07-27 17:04:56 +0000
commitd4d7ca154aba6a0f8370fe818bb79bd7685b9fdc (patch)
tree9fe71cfe1133914703f5c502a7c60529cda9fff5 /sys/kern/tty_cons.c
parentb40be37a17ddb7368dd149f10f7c780fa8cfed66 (diff)
downloadFreeBSD-src-d4d7ca154aba6a0f8370fe818bb79bd7685b9fdc.zip
FreeBSD-src-d4d7ca154aba6a0f8370fe818bb79bd7685b9fdc.tar.gz
Add fdidx argument to vn_open() and vn_open_cred() and pass -1 throughout.
Diffstat (limited to 'sys/kern/tty_cons.c')
-rw-r--r--sys/kern/tty_cons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c
index 53a5d3d..9737ca5 100644
--- a/sys/kern/tty_cons.c
+++ b/sys/kern/tty_cons.c
@@ -376,7 +376,7 @@ cn_devopen(struct cn_device *cnd, struct thread *td, int forceopen)
}
snprintf(path, sizeof(path), "/dev/%s", cnd->cnd_name);
NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, path, td);
- error = vn_open(&nd, &openflag, 0);
+ error = vn_open(&nd, &openflag, 0, -1);
if (error == 0) {
NDFREE(&nd, NDF_ONLY_PNBUF);
VOP_UNLOCK(nd.ni_vp, 0, td);
OpenPOWER on IntegriCloud