diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/opendir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/opendir.c b/lib/libc/gen/opendir.c index 518d160..d1762f5 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; } |