From ba30eb632ad9bd2e008267a10eed3e20e4c94ed2 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 24 Jun 2016 19:41:26 -0500 Subject: [PATCH] ntfs-3g_apply.c: inform user about yet another possible NTFS-3G bug --- src/ntfs-3g_apply.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ntfs-3g_apply.c b/src/ntfs-3g_apply.c index 4c0e2af8..acf1b954 100644 --- a/src/ntfs-3g_apply.c +++ b/src/ntfs-3g_apply.c @@ -168,8 +168,17 @@ ntfs_3g_restore_dos_name(ntfs_inode *ni, ntfs_inode *dir_ni, } utf16le_put_tstr(dos_name); if (ret) { + int err = errno; ERROR_WITH_ERRNO("Failed to set DOS name of \"%s\" in NTFS " "volume", dentry_full_path(dentry)); + if (err == EILSEQ) { + ERROR("This error may have been caused by a known " + "bug in libntfs-3g where it is unable to set " + "DOS names on files whose long names contain " + "unpaired surrogate characters. This bug " + "was fixed in the development version of " + "NTFS-3G in June 2016."); + } ret = WIMLIB_ERR_SET_SHORT_NAME; goto out_close; } -- 2.43.0