|
@@ -71,15 +71,19 @@ ecryptfs_create_underlying_file(struct inode *lower_dir_inode,
|
|
struct vfsmount *lower_mnt = ecryptfs_dentry_to_lower_mnt(dentry);
|
|
struct vfsmount *lower_mnt = ecryptfs_dentry_to_lower_mnt(dentry);
|
|
struct dentry *dentry_save;
|
|
struct dentry *dentry_save;
|
|
struct vfsmount *vfsmount_save;
|
|
struct vfsmount *vfsmount_save;
|
|
|
|
+ unsigned int flags_save;
|
|
int rc;
|
|
int rc;
|
|
|
|
|
|
dentry_save = nd->path.dentry;
|
|
dentry_save = nd->path.dentry;
|
|
vfsmount_save = nd->path.mnt;
|
|
vfsmount_save = nd->path.mnt;
|
|
|
|
+ flags_save = nd->flags;
|
|
nd->path.dentry = lower_dentry;
|
|
nd->path.dentry = lower_dentry;
|
|
nd->path.mnt = lower_mnt;
|
|
nd->path.mnt = lower_mnt;
|
|
|
|
+ nd->flags &= ~LOOKUP_OPEN;
|
|
rc = vfs_create(lower_dir_inode, lower_dentry, mode, nd);
|
|
rc = vfs_create(lower_dir_inode, lower_dentry, mode, nd);
|
|
nd->path.dentry = dentry_save;
|
|
nd->path.dentry = dentry_save;
|
|
nd->path.mnt = vfsmount_save;
|
|
nd->path.mnt = vfsmount_save;
|
|
|
|
+ nd->flags = flags_save;
|
|
return rc;
|
|
return rc;
|
|
}
|
|
}
|
|
|
|
|