GIT: unionfs2-2.6.27.y: Unionfs: fix off-by-one but in mkdir
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:18:08 EDT 2010
commit d21a81850bc0ec0cf83436a3180fba5dae23e836
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date: Fri Sep 12 23:16:26 2008 -0400
Unionfs: fix off-by-one but in mkdir
Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c
index d6eb23c..241297b 100644
--- a/fs/unionfs/inode.c
+++ b/fs/unionfs/inode.c
@@ -516,7 +516,7 @@ static int unionfs_mkdir(struct inode *parent, struct dentry *dentry, int mode)
if (err)
break;
- for (i = bindex + 1; i < bend; i++) {
+ for (i = bindex + 1; i <= bend; i++) {
if (unionfs_lower_dentry_idx(dentry, i)) {
dput(unionfs_lower_dentry_idx(dentry, i));
unionfs_set_lower_dentry_idx(dentry, i, NULL);
More information about the unionfs-cvs
mailing list