diff options
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/dir-lookup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c index 8df81cfa..30e2a2e3 100644 --- a/libdiskfs/dir-lookup.c +++ b/libdiskfs/dir-lookup.c @@ -51,7 +51,7 @@ diskfs_S_dir_lookup (struct protid *dircred, int lastcomp = 0; int newnode = 0; struct dirstat *ds = 0; - int mustbedir = 0; + int mustbedir = (flags & O_DIRECTORY) != 0; mach_msg_type_name_t amt; int type; struct protid *newpi = 0; |