diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-09-07 19:04:07 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-09-07 19:04:07 +0000 |
commit | e4e9c8aa5ff77fc5a4d7300ea032b71d29ccd64e (patch) | |
tree | 09546a6f38cfe9169fa9f2a18d44fe9cc94f959b /lib/libc/gen/opendir.c | |
parent | 460f06d87e721d17f96b4349a6bb4c4de5b5e08b (diff) |
Understand about union mounts as well as union file system
Diffstat (limited to 'lib/libc/gen/opendir.c')
-rw-r--r-- | lib/libc/gen/opendir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/opendir.c b/lib/libc/gen/opendir.c index 69b3bdab1fd..2c8487e82a9 100644 --- a/lib/libc/gen/opendir.c +++ b/lib/libc/gen/opendir.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: opendir.c,v 1.2 1996/08/19 08:25:12 tholo Exp $"; +static char rcsid[] = "$OpenBSD: opendir.c,v 1.3 1996/09/07 19:04:06 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -103,8 +103,8 @@ __opendir2(name, flags) close(fd); return (NULL); } - unionstack = !strncmp(sfb.f_fstypename, MOUNT_UNION, - MFSNAMELEN); + unionstack = strncmp(sfb.f_fstypename, MOUNT_UNION, MFSNAMELEN) == 0 || + (sfb.f_flags & MNT_UNION); } else { unionstack = 0; } |