From f4368f516890f4fde18e63675f421a48681a6916 Mon Sep 17 00:00:00 2001 From: riastradh Date: Thu, 19 May 2011 15:07:16 +0000 Subject: [PATCH] Initialize psshfs root node's readdir waiters queue. Every other node's readder waiters queue is initialized in makenode, but the root node is created specially. ok pooka --- usr.sbin/puffs/mount_psshfs/psshfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/puffs/mount_psshfs/psshfs.c b/usr.sbin/puffs/mount_psshfs/psshfs.c index 286dbdae1892..6ae24d318345 100644 --- a/usr.sbin/puffs/mount_psshfs/psshfs.c +++ b/usr.sbin/puffs/mount_psshfs/psshfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: psshfs.c,v 1.62 2010/10/29 16:13:51 pooka Exp $ */ +/* $NetBSD: psshfs.c,v 1.63 2011/05/19 15:07:16 riastradh Exp $ */ /* * Copyright (c) 2006-2009 Antti Kantee. All Rights Reserved. @@ -41,7 +41,7 @@ #include #ifndef lint -__RCSID("$NetBSD: psshfs.c,v 1.62 2010/10/29 16:13:51 pooka Exp $"); +__RCSID("$NetBSD: psshfs.c,v 1.63 2011/05/19 15:07:16 riastradh Exp $"); #endif /* !lint */ #include @@ -257,6 +257,7 @@ main(int argc, char *argv[]) pctx.nextino = 2; memset(root, 0, sizeof(struct psshfs_node)); + TAILQ_INIT(&root->pw); pn_root = puffs_pn_new(pu, root); if (pn_root == NULL) return errno;