From e46ec2a51f0f4650b655a642baaff12847a413b5 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 2 Jun 2002 02:33:03 +0000 Subject: 2002-06-02 Marcus Brinkmann * mux.c (netfs_get_dirents): Initialize COUNT with 2, to take into account the DOT and DOTDOT directories when skipping over the first FIRST_ENTRY entries. --- hostmux/ChangeLog | 6 ++++++ hostmux/mux.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'hostmux') diff --git a/hostmux/ChangeLog b/hostmux/ChangeLog index 00a28012b..db9a918c1 100644 --- a/hostmux/ChangeLog +++ b/hostmux/ChangeLog @@ -1,3 +1,9 @@ +2002-06-02 Marcus Brinkmann + + * mux.c (netfs_get_dirents): Initialize COUNT with 2, to take into + account the DOT and DOTDOT directories when skipping over the + first FIRST_ENTRY entries. + 2002-05-13 Roland McGrath * mux.c (netfs_attempt_chmod): Handle MODE arg with no S_IFMT bits set. diff --git a/hostmux/mux.c b/hostmux/mux.c index 4f03cc129..dd976c57a 100644 --- a/hostmux/mux.c +++ b/hostmux/mux.c @@ -126,7 +126,7 @@ netfs_get_dirents (struct iouser *cred, struct node *dir, rwlock_reader_lock (&dir->nn->mux->names_lock); /* Find the first entry. */ - for (first_name = dir->nn->mux->names, count = 0; + for (first_name = dir->nn->mux->names, count = 2; first_name && first_entry > count; first_name = first_name->next) if (first_name->node) -- cgit v1.2.3