Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/tmpfs tmpfs_dir_getdotdotdent: correct fileid.
details: https://anonhg.NetBSD.org/src/rev/2f0323646d09
branches: trunk
changeset: 584416:2f0323646d09
user: yamt <yamt%NetBSD.org@localhost>
date: Fri Sep 16 00:18:48 2005 +0000
description:
tmpfs_dir_getdotdotdent: correct fileid.
diffstat:
sys/fs/tmpfs/tmpfs_subr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a6eceaa828a3 -r 2f0323646d09 sys/fs/tmpfs/tmpfs_subr.c
--- a/sys/fs/tmpfs/tmpfs_subr.c Thu Sep 15 23:35:15 2005 +0000
+++ b/sys/fs/tmpfs/tmpfs_subr.c Fri Sep 16 00:18:48 2005 +0000
@@ -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 <sys/cdefs.h>
-__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 <sys/param.h>
#include <sys/dirent.h>
@@ -579,7 +579,7 @@
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] = '.';
Home |
Main Index |
Thread Index |
Old Index