diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2002-06-02 02:33:03 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2002-06-02 02:33:03 +0000 |
commit | e46ec2a51f0f4650b655a642baaff12847a413b5 (patch) | |
tree | 3d625799d49b4f4a593febbf6c9bd67b2b926387 /hostmux/mux.c | |
parent | 913c4f4c626cf9ea6f660136ac0bf4b4f9ccd910 (diff) | |
download | hurd-e46ec2a51f0f4650b655a642baaff12847a413b5.tar.gz hurd-e46ec2a51f0f4650b655a642baaff12847a413b5.tar.bz2 hurd-e46ec2a51f0f4650b655a642baaff12847a413b5.zip |
2002-06-02 Marcus Brinkmann <marcus@gnu.org>
* 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.
Diffstat (limited to 'hostmux/mux.c')
-rw-r--r-- | hostmux/mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hostmux/mux.c b/hostmux/mux.c index 4f03cc12..dd976c57 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) |