]> wimlib.net Git - wimlib/commitdiff
ntfs-3g_apply.c: inform user about yet another possible NTFS-3G bug
authorEric Biggers <ebiggers3@gmail.com>
Wed, 22 Jun 2016 01:01:55 +0000 (20:01 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Wed, 22 Jun 2016 01:02:48 +0000 (20:02 -0500)
src/ntfs-3g_apply.c

index 4c0e2af8f75fa6c54ffecd9d52c4e724421dc34b..acf1b95485ac61d2132897bd6eb6c7434aefb085 100644 (file)
@@ -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;
        }