diff options
| author | Julian Elischer <julian@FreeBSD.org> | 1995-08-28 09:19:25 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 1995-08-28 09:19:25 +0000 |
| commit | 2b14f991e64ebe31ca31a1a41237061c22a753d0 (patch) | |
| tree | 53b6da073fd58ab81ebf18bb0642954c76b642bd /sys/compat/linux | |
| parent | fe89a532f18d81f8e76e48fc462f070e870d035d (diff) | |
Notes
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/linux_stats.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c index 1dbfcf11e64b..95839e0c97a1 100644 --- a/sys/compat/linux/linux_stats.c +++ b/sys/compat/linux/linux_stats.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_stats.c,v 1.3 1995/06/08 13:50:52 sos Exp $ + * $Id: linux_stats.c,v 1.1 1995/06/25 17:32:42 sos Exp $ */ #include <sys/param.h> @@ -206,12 +206,7 @@ linux_statfs(struct proc *p, struct linux_statfs_args *args, int *retval) printf("Linux-emul(%d): statfs(%s, *)\n", p->p_pid, args->path); #endif ndp = &nd; - ndp->ni_cnd.cn_nameiop = LOOKUP; - ndp->ni_cnd.cn_flags = FOLLOW; - ndp->ni_cnd.cn_proc = curproc; - ndp->ni_cnd.cn_cred = curproc->p_cred->pc_ucred; - ndp->ni_segflg = UIO_USERSPACE; - ndp->ni_dirp = args->path; + NDINIT(ndp, LOOKUP, FOLLOW, UIO_USERSPACE, args->path, curproc); if (error = namei(ndp)) return error; mp = ndp->ni_vp->v_mount; |
