From a78819af2873ea7b104366bf72af7c3e5b30782b Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Sat, 22 Nov 2014 03:41:55 +0000 Subject: 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. --- src/copy.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); } -- cgit v1.2.3-54-g00ecf