Jump out of the scandir loop if VOP_READDIR returns an error, avoiding

running around in circles.
This commit is contained in:
fvdl 2000-12-15 11:52:14 +00:00
parent cf27186531
commit 89b5cfa9c5

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_getcwd.c,v 1.13 2000/03/30 09:27:14 augustss Exp $ */
/* $NetBSD: vfs_getcwd.c,v 1.14 2000/12/15 11:52:14 fvdl Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -253,7 +253,8 @@ unionread:
}
cpos += reclen;
}
}
} else
goto out;
} while (!eofflag);
#if 0
/*