From d4d7ca154aba6a0f8370fe818bb79bd7685b9fdc Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 27 Jul 2003 17:04:56 +0000 Subject: Add fdidx argument to vn_open() and vn_open_cred() and pass -1 throughout. --- sys/kern/kern_descrip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/kern_descrip.c') diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 3e7c660..d8542c8 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1701,7 +1701,7 @@ fdcheckstd(td) NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, "/dev/null", td); flags = FREAD | FWRITE; - error = vn_open(&nd, &flags, 0); + error = vn_open(&nd, &flags, 0, -1); if (error != 0) { FILEDESC_LOCK(fdp); fdp->fd_ofiles[fd] = NULL; -- cgit v1.1