From: Eric Biggers Date: Sat, 25 Aug 2012 19:52:41 +0000 (-0500) Subject: Fix wimfs_getattr() X-Git-Tag: v1.0.0~84 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=b280d3fb6a7d9c6d21f809e0a6864f82d6539580;ds=sidebyside Fix wimfs_getattr() --- 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);