From b280d3fb6a7d9c6d21f809e0a6864f82d6539580 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 25 Aug 2012 14:52:41 -0500 Subject: [PATCH] Fix wimfs_getattr() --- src/lookup_table.h | 4 +++- src/mount.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lookup_table.h b/src/lookup_table.h index 4df2c6bd..0490291e 100644 --- a/src/lookup_table.h +++ b/src/lookup_table.h @@ -10,7 +10,9 @@ #define LOOKUP_FLAG_ADS_OK 0x00000001 #define LOOKUP_FLAG_DIRECTORY_OK 0x00000002 -#define LOOKUP_FLAG_FOLLOW_SYMLINKS 0x00000004 + +/* Not yet used */ +//#define LOOKUP_FLAG_FOLLOW_SYMLINKS 0x00000004 /* A lookup table that is used to translate the hash codes of dentries into the diff --git a/src/mount.c b/src/mount.c index ac4aeb37..58bbabec 100644 --- a/src/mount.c +++ b/src/mount.c @@ -988,7 +988,9 @@ static int wimfs_getattr(const char *path, struct stat *stbuf) struct dentry *dentry; int ret; - ret = lookup_resource(w, path, get_lookup_flags(), &dentry, NULL, NULL); + ret = lookup_resource(w, path, + get_lookup_flags() | LOOKUP_FLAG_DIRECTORY_OK, + &dentry, NULL, NULL); if (ret != 0) return ret; return dentry_to_stbuf(dentry, stbuf); -- 2.43.0