diff options
author | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2013-03-21 17:20:38 +0100 |
---|---|---|
committer | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2013-03-22 08:17:03 +0100 |
commit | 0552b4334c2fb6b130ec05934b952b60418aadca (patch) | |
tree | 7882cf912ea8b76d4e71c63c275fcd7a28a36554 /l10ntools/source | |
parent | 33b0684dd721c4ee5c24d2c9b3b77974db882046 (diff) |
Check return value of system()
Change-Id: I1b9e31b8c64ed8bf7eb073f036a7fdda39a15392
Diffstat (limited to 'l10ntools/source')
-rw-r--r-- | l10ntools/source/localize.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx index b608ee00959b..b19521ad84c6 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 |