hfsplus: fix rename over directories
When renaming over a directory we need to use hfsplus_rmdir instead of hfsplus_unlink to evict the victim. This makes sure we properly error out on non-empty directory as required by Posix (BZ #16571), and it also makes sure we do the right thing in case i_nlink will every be set correctly for directories on hfsplus. Reported-by: NVlado Plaga <rechner@vlado-do.de> Signed-off-by: NChristoph Hellwig <hch@tuxera.com>
Showing
想要评论请 注册 或 登录