Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124986
b: refs/heads/master
c: a17d523
h: refs/heads/master
v: v3
  • Loading branch information
Duane Griffin authored and Al Viro committed Dec 31, 2008
1 parent dc685ae commit 81e05ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5cc4a0341a1295ea56b2e62eb70d96d8fdb94ded
refs/heads/master: a17d5232de7b53d34229de79ec22f4bb04adb7e4
3 changes: 2 additions & 1 deletion trunk/fs/ecryptfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,10 +673,11 @@ static void *ecryptfs_follow_link(struct dentry *dentry, struct nameidata *nd)
ecryptfs_printk(KERN_DEBUG, "Calling readlink w/ "
"dentry->d_name.name = [%s]\n", dentry->d_name.name);
rc = dentry->d_inode->i_op->readlink(dentry, (char __user *)buf, len);
buf[rc] = '\0';
set_fs(old_fs);
if (rc < 0)
goto out_free;
else
buf[rc] = '\0';
rc = 0;
nd_set_link(nd, buf);
goto out;
Expand Down

0 comments on commit 81e05ad

Please sign in to comment.