diff options
author | phk <phk@FreeBSD.org> | 2003-07-27 20:05:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-07-27 20:05:36 +0000 |
commit | b80d7fd8a0c1f1addc6ce976b9ca5863a97f959a (patch) | |
tree | be84cb623283403866668881aadb26b4b6d9de5e /sys | |
parent | fa6dd8ff580e1abb63ffa565503b42b910ec720c (diff) | |
download | FreeBSD-src-b80d7fd8a0c1f1addc6ce976b9ca5863a97f959a.zip FreeBSD-src-b80d7fd8a0c1f1addc6ce976b9ca5863a97f959a.tar.gz |
Pass the fdidx argument from vn_open{_cred}() onto VOP_OPEN()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_vnops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index b43b908..9efbf6b 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -85,7 +85,7 @@ struct fileops vnops = { int vn_open(ndp, flagp, cmode, fdidx) - register struct nameidata *ndp; + struct nameidata *ndp; int *flagp, cmode, fdidx; { struct thread *td = ndp->ni_cnd.cn_thread; @@ -102,7 +102,7 @@ vn_open(ndp, flagp, cmode, fdidx) */ int vn_open_cred(ndp, flagp, cmode, cred, fdidx) - register struct nameidata *ndp; + struct nameidata *ndp; int *flagp, cmode; struct ucred *cred; int fdidx; @@ -235,7 +235,7 @@ restart: vp->v_cachedfs = vap->va_fsid; vp->v_cachedid = vap->va_fileid; } - if ((error = VOP_OPEN(vp, fmode, cred, td, -1)) != 0) + if ((error = VOP_OPEN(vp, fmode, cred, td, fdidx)) != 0) goto bad; /* * Make sure that a VM object is created for VMIO support. |