summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/copy.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/copy.c b/src/copy.c
index a6ea3e6b6..c958eb687 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -1385,18 +1385,7 @@ copy_internal (char const *src_name, char const *dst_name,
/* This happens when attempting to rename a directory to a
subdirectory of itself. */
- if (errno == EINVAL
-
- /* When src_name is on an NFS file system, some types of
- clients, e.g., SunOS4.1.4 and IRIX-5.3, set errno to EIO
- instead. Testing for this here risks misinterpreting a real
- I/O error as an attempt to move a directory into itself, so
- FIXME: consider not doing this. */
- || errno == EIO
-
- /* And with SunOS-4.1.4 client and OpenBSD-2.3 server,
- we get ENOTEMPTY. */
- || errno == ENOTEMPTY)
+ if (errno == EINVAL)
{
/* FIXME: this is a little fragile in that it relies on rename(2)
failing with a specific errno value. Expect problems on