#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
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);