l10ntools/source/localize.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
New commits: commit 0552b4334c2fb6b130ec05934b952b60418aadca Author: Zolnai Tamás <zolnaitamas2...@gmail.com> Date: Thu Mar 21 17:20:38 2013 +0100 Check return value of system() Change-Id: I1b9e31b8c64ed8bf7eb073f036a7fdda39a15392 diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx index b608ee0..b19521a 100644 --- a/l10ntools/source/localize.cxx +++ b/l10ntools/source/localize.cxx @@ -284,7 +284,13 @@ void handleFilesOfDir( aPOStream.close(); if( bDel ) { - system(OString("rm " + sPotFile).getStr()); + if ( system(OString("rm " + sPotFile).getStr()) != 0 ) + { + cerr + << "Error: Cannot remove entryless pot file: " + << sPotFile.getStr() << "\n"; + throw false; //TODO + } } } //Remove empty pot directories
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits