Skip to content
Permalink
Browse files

patch ecryptfs to fix a build error

  • Loading branch information...
UniversalSuperBox committed Oct 18, 2016
1 parent fe4569e commit b0403f0ee02e6582017cdb45b4c0c72b00cc72eb
Showing with 8 additions and 8 deletions.
  1. +8 −8 fs/ecryptfs/file.c
@@ -116,18 +116,18 @@ static int ecryptfs_readdir(struct file *file, void *dirent, filldir_t filldir)
int rc;
struct file *lower_file;
struct inode *inode;
struct ecryptfs_getdents_callback buf;
struct ecryptfs_getdents_callback buf = {
.dirent = dirent,
.dentry = file->f_path.dentry,
.filldir = filldir,
.filldir_called = 0,
.entries_written = 0,
.ctx.actor = ecryptfs_filldir
};

lower_file = ecryptfs_file_to_lower(file);
lower_file->f_pos = file->f_pos;
inode = file_inode(file);
memset(&buf, 0, sizeof(buf));
buf.dirent = dirent;
buf.dentry = file->f_path.dentry;
buf.filldir = filldir;
buf.filldir_called = 0;
buf.entries_written = 0;
buf.ctx.actor = ecryptfs_filldir;
rc = iterate_dir(lower_file, &buf.ctx);
file->f_pos = lower_file->f_pos;
if (rc < 0)

0 comments on commit b0403f0

Please sign in to comment.
You can’t perform that action at this time.