indexer bumping: check the status of touch command to avoid cc warning

This commit is contained in:
Jean-Francois Dockes
2018-11-30 12:13:12 +01:00
parent abc45bc156
commit 02181fbb84
2 changed files with 11 additions and 4 deletions
+4 -1
View File
@@ -303,7 +303,10 @@ void RclMain::bumpIndexing()
string cmd("touch ");
string path = path_cat(theconfig->getConfDir(), "recoll.conf");
cmd += path;
system(cmd.c_str());
int status;
if ((status = system(cmd.c_str()))) {
cerr << cmd << " failed with status " << status << endl;
}
}
}
#else