From db59142cb300e973fb442f26ea5f614f9e856feb Mon Sep 17 00:00:00 2001 From: yamt Date: Fri, 16 Sep 2005 00:18:48 +0000 Subject: [PATCH] tmpfs_dir_getdotdotdent: correct fileid. --- sys/fs/tmpfs/tmpfs_subr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index e532c09aa341..e180184ddf72 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: tmpfs_subr.c,v 1.5 2005/09/15 12:34:35 yamt Exp $ */ +/* $NetBSD: tmpfs_subr.c,v 1.6 2005/09/16 00:18:48 yamt Exp $ */ /* * Copyright (c) 2005 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tmpfs_subr.c,v 1.5 2005/09/15 12:34:35 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tmpfs_subr.c,v 1.6 2005/09/16 00:18:48 yamt Exp $"); #include #include @@ -579,7 +579,7 @@ tmpfs_dir_getdotdotdent(struct tmpfs_node *node, struct uio *uio) TMPFS_VALIDATE_DIR(node); KASSERT(uio->uio_offset == TMPFS_DIRCOOKIE_DOTDOT); - dent.d_fileno = node->tn_id; + dent.d_fileno = node->tn_parent->tn_id; dent.d_type = DT_DIR; dent.d_namlen = 2; dent.d_name[0] = '.';