X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=fs%2Fhfs%2Fdir.c;h=5de5c48b418da2e62edc00c188bde0546cf97410;hb=3873691e5ab34fa26948643d038a2b98c4437298;hp=4f379fb916911a58e8a4cf573ffdbb90783a775b;hpb=c2050a454c7f123d7a57fa1d76ff61bd43643abb;p=cascardo%2Flinux.git diff --git a/fs/hfs/dir.c b/fs/hfs/dir.c index 4f379fb91691..5de5c48b418d 100644 --- a/fs/hfs/dir.c +++ b/fs/hfs/dir.c @@ -286,10 +286,14 @@ static int hfs_remove(struct inode *dir, struct dentry *dentry) * XXX: how do you handle must_be dir? */ static int hfs_rename(struct inode *old_dir, struct dentry *old_dentry, - struct inode *new_dir, struct dentry *new_dentry) + struct inode *new_dir, struct dentry *new_dentry, + unsigned int flags) { int res; + if (flags & ~RENAME_NOREPLACE) + return -EINVAL; + /* Unlink destination if it already exists */ if (d_really_is_positive(new_dentry)) { res = hfs_remove(new_dir, new_dentry);