From b2bcd87e4fdfd70088e70a2afd0aa24d7025b24c Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Mon, 23 Apr 2001 10:01:38 +0000 Subject: Fix directory reads of MNT_UNION mounts, where entries present in both layers would be displayed twice. PR: bin/26498 Submitted by: Olliver Fromme --- lib/libc/gen/opendir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/gen/opendir.c b/lib/libc/gen/opendir.c index 518d16058da5..d1762f58b892 100644 --- a/lib/libc/gen/opendir.c +++ b/lib/libc/gen/opendir.c @@ -117,7 +117,8 @@ __opendir2(name, flags) if (_fstatfs(fd, &sfb) < 0) goto fail; - unionstack = !strcmp(sfb.f_fstypename, "union"); + unionstack = !strcmp(sfb.f_fstypename, "union") + || (sfb.f_flags & MNT_UNION); } else { unionstack = 0; } -- cgit v1.2.3