From: Eric Biggers Date: Sun, 16 Sep 2012 19:32:50 +0000 (-0500) Subject: wimfs_readlink(): Use wim_pathname_to_inode() X-Git-Tag: v1.0.4~58 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=d574e10a584a4dca049fdfe3f0f7b0ddbba369aa;ds=sidebyside wimfs_readlink(): Use wim_pathname_to_inode() --- 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;