From 89c6f610e249d8496e8599ec0f476a8e3334d212 Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Tue, 10 Dec 2002 16:46:10 +0000 Subject: [PATCH] =?UTF-8?q?bugfix:=20make=20ntfs=5Fnames=5Fare=5Fequal=20r?= =?UTF-8?q?eturn=20true=20if=20both=20names=20are=20zero=20length=20thanks?= =?UTF-8?q?=20to=20Leonard=20Norrg=E5rd=20for=20the=20fix.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (Logical change 1.37) --- ChangeLog | 2 ++ libntfs/unistr.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e4d6d47d..19fec798 100644 --- a/ChangeLog +++ b/ChangeLog @@ -147,6 +147,8 @@ - The word is "runlist", not "run_list", "run list", or "run-list". - Prefix all functions with "ntfs_" and make the names of the form "ntfs_object_action()". Keep this for all future functions! + - Change unistr.c::ntfs_names_are_equal() to return TRUE when both + names have zero length. Thanks to Leonard Norrgard for spotting this. 12/03/2002 - 1.6.0 - More mkntfs options and cleanups. Fix typo in usage information of mkntfs. Thanks to Richard Russon for diff --git a/libntfs/unistr.c b/libntfs/unistr.c index 459321e6..51c00015 100644 --- a/libntfs/unistr.c +++ b/libntfs/unistr.c @@ -77,7 +77,7 @@ BOOL ntfs_names_are_equal(const uchar_t *s1, size_t s1_len, if (s1_len != s2_len) return FALSE; if (!s1_len) - return 0; + return TRUE; if (ic == CASE_SENSITIVE) return ntfs_ucsncmp(s1, s2, s1_len << 1) ? FALSE: TRUE; return ntfs_ucsncasecmp(s1, s2, s1_len, upcase, upcase_size) ? FALSE: