diff options
Diffstat (limited to 'cmd/sharefs/fuse-helper.c')
| -rw-r--r-- | cmd/sharefs/fuse-helper.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/cmd/sharefs/fuse-helper.c b/cmd/sharefs/fuse-helper.c index 7725b679..2c62c260 100644 --- a/cmd/sharefs/fuse-helper.c +++ b/cmd/sharefs/fuse-helper.c @@ -82,19 +82,6 @@ int sharefs_getattr(const char *pathname, struct stat *statbuf, struct fuse_file return impl_getattr(ctx, statbuf); } -int sharefs_readlink(const char *pathname, char *buf, size_t bufsiz) { - int res; - struct fuse_context *ctx; - struct sharefs_private *priv; - GET_CONTEXT_PRIV(ctx, priv); - MUST_TRANSLATE_PATHNAME(pathname); - - if ((res = readlinkat(priv->dirfd, pathname, buf, bufsiz - 1)) == -1) - return -errno; - buf[res] = '\0'; - return 0; -} - int sharefs_readdir(const char *pathname, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi, enum fuse_readdir_flags flags) { int fd; DIR *dp; |
