From d574e10a584a4dca049fdfe3f0f7b0ddbba369aa Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 16 Sep 2012 14:32:50 -0500 Subject: [PATCH] wimfs_readlink(): Use wim_pathname_to_inode() --- src/mount.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mount.c b/src/mount.c index abc7fb93..44dece2f 100644 --- a/src/mount.c +++ b/src/mount.c @@ -1267,14 +1267,14 @@ static int wimfs_readdir(const char *path, void *buf, fuse_fill_dir_t filler, static int wimfs_readlink(const char *path, char *buf, size_t buf_len) { - struct dentry *dentry = get_dentry(w, path); + struct inode *inode = wim_pathname_to_inode(w, path); int ret; - if (!dentry) + if (!inode) return -ENOENT; - if (!dentry_is_symlink(dentry)) + if (!inode_is_symlink(inode)) return -EINVAL; - ret = inode_readlink(dentry->d_inode, buf, buf_len, w); + ret = inode_readlink(inode, buf, buf_len, w); if (ret > 0) ret = 0; return ret; -- 2.43.0