summaryrefslogtreecommitdiffstats
path: root/testing/unetbootin/allow-ntfs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/unetbootin/allow-ntfs.patch')
-rw-r--r--testing/unetbootin/allow-ntfs.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/unetbootin/allow-ntfs.patch b/testing/unetbootin/allow-ntfs.patch
new file mode 100644
index 000000000..d8e72c191
--- /dev/null
+++ b/testing/unetbootin/allow-ntfs.patch
@@ -0,0 +1,20 @@
+--- src.orig/unetbootin.cpp
++++ src/unetbootin.cpp
+@@ -572,7 +572,7 @@
+ {
+ if (!volidcommand.isEmpty())
+ {
+- if (QString(callexternapp(volidcommand, QString("-t %2").arg(usbfileinfoL.at(i).canonicalFilePath()))).contains(QRegExp("(vfat|ext2|ext3|ext4)")))
++ if (QString(callexternapp(volidcommand, QString("-t %2").arg(usbfileinfoL.at(i).canonicalFilePath()))).contains(QRegExp("(vfat|ntfs|ext2|ext3|ext4)")))
+ fulldrivelist.append(usbfileinfoL.at(i).canonicalFilePath());
+ }
+ else
+@@ -580,7 +580,7 @@
+ QString tstrblk = QString(callexternapp(blkidcommand, QString("-s TYPE %2").arg(usbfileinfoL.at(i).canonicalFilePath())));
+ if (tstrblk.contains('='))
+ {
+- if (tstrblk.section('=', -1, -1).remove('"').contains(QRegExp("(vfat|ext2|ext3|ext4)")))
++ if (tstrblk.section('=', -1, -1).remove('"').contains(QRegExp("(vfat|ntfs|ext2|ext3|ext4)")))
+ fulldrivelist.append(usbfileinfoL.at(i).canonicalFilePath());
+ }
+ }