]> wimlib.net Git - wimlib/blobdiff - src/mount.c
Fix wimfs_getattr()
[wimlib] / src / mount.c
index ac4aeb376c750d9ed94387711aca35e0a54e9aeb..58bbabec6fe8ba15f58846f19dafe4623e16c7ba 100644 (file)
@@ -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);