]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
decode2text.sh: Hide catdoc/catppt/xls2csv segmentation faults.
authorTimo Sirainen <tss@iki.fi>
Fri, 20 Jan 2012 15:56:32 +0000 (17:56 +0200)
committerTimo Sirainen <tss@iki.fi>
Fri, 20 Jan 2012 15:56:32 +0000 (17:56 +0200)
We can't do anything about them anyway.

src/plugins/fts/decode2text.sh

index 716f93fc36ecee6a7d0bbe35990695ecbc330b56..d9587e9e0b0335ee251e1ddcfb15cfc30fc30d5e 100755 (executable)
@@ -74,11 +74,11 @@ export LANG
 if [ $fmt = "pdf" ]; then
   /usr/bin/pdftotext $path - 2>/dev/null
 elif [ $fmt = "doc" ]; then
-  /usr/bin/catdoc $path 2>/dev/null
+  (/usr/bin/catdoc $path; true) 2>/dev/null
 elif [ $fmt = "ppt" ]; then
-  /usr/bin/catppt $path 2>/dev/null
+  (/usr/bin/catppt $path; true) 2>/dev/null
 elif [ $fmt = "xls" ]; then
-  /usr/bin/xls2csv $path 2>/dev/null
+  (/usr/bin/xls2csv $path; true) 2>/dev/null
 elif [ $fmt = "odt" -o $fmt = "ods" -o $fmt = "odp" ]; then
   xmlunzip "content.xml"
 elif [ $fmt = "docx" ]; then