summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-11-22 03:41:55 +0000
committerPádraig Brady <P@draigBrady.com>2014-11-22 03:46:34 +0000
commita78819af2873ea7b104366bf72af7c3e5b30782b (patch)
tree78d69e4f3306ce613e62c519bbeb74351e49cd05 /src
parent57c8196ef6848962145a70dcc465c239a9998eea (diff)
downloadcoreutils-a78819af2873ea7b104366bf72af7c3e5b30782b.tar.xz
tests: add a case verifying mv on case insensitive file systems
* NEWS: Update the recent entry to also mention the avoidance of incorrectly unlinking a multi-hardlinked "source" file when presented with source and dest that only differ in case. * src/copy.c (same_file_ok): Mention the case issue with same_name(). * tests/mv/hardlink-case.sh: Test the issue on HFS+. * tests/local.mk: Reference the new test case. * tests/mv/vfat: Remove an old related but unused test case.
Diffstat (limited to 'src')
-rw-r--r--src/copy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/copy.c b/src/copy.c
index 01cee3214..f316f0522 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -1526,6 +1526,7 @@ same_file_ok (char const *src_name, struct stat const *src_sb,
return true;
}
+ /* FIXME: What about case insensitive file systems ? */
return ! same_name (src_name, dst_name);
}