Compare commits
2 Commits
2d63788352
...
bcabad0620
| Author | SHA1 | Date | |
|---|---|---|---|
| bcabad0620 | |||
| bc4083a98c |
@ -313,6 +313,7 @@ void reHDD::searchDrives(std::list<Drive> *plistDrives)
|
||||
if (!fp)
|
||||
{
|
||||
Logger::logThis()->error("Unable to execute lsblk to scan drives");
|
||||
pclose(fp);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
@ -404,6 +405,7 @@ void reHDD::filterIgnoredDrives(list<Drive> *plistDrives)
|
||||
FILE *outputfileBlkid = popen(sCMD.c_str(), "r"); // get UUID from drive
|
||||
if (outputfileBlkid == NULL)
|
||||
{
|
||||
pclose(outputfileBlkid);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
@ -683,6 +685,7 @@ bool reHDD::getSystemDrive(string &systemDrive)
|
||||
if (outputfileHwinfo == NULL)
|
||||
{
|
||||
Logger::logThis()->error("Unable to scan attached drives for system drive");
|
||||
pclose(outputfileHwinfo);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user