renameat2 syscall: turn EEXIST into ENOTEMPTY
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 16 Apr 2014 00:19:02 +0000 (10:19 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 16 Apr 2014 00:19:02 +0000 (10:19 +1000)
commitcd444c6591df7cc1dd2989b81259c9e9e6744613
treed95f43b7e6dba6cd88a7d5c02140351f39579ea8
parent5fba951f43e063c7536cd13e1a29fa55bed99ce5
renameat2 syscall: turn EEXIST into ENOTEMPTY

XFS is returning EEXIST rather than ENOTEMPTY for several of
these rename tests. The rename man page says this about the errors:

       ENOTEMPTY or EEXIST
              newpath is a nonempty directory, that is, contains
              entries other than "." and "..".

Which implies that both errors are valid and so the test should pass
in either case.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
src/renameat2.c