summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoolStar <coolstarorganization@gmail.com>2018-05-10 15:00:46 -0700
committerSam Bingner <sam@bingner.com>2019-12-26 15:12:15 -1000
commitf26ac05a9a0c1ba9628a7c58b5420cffb369d389 (patch)
tree28efc97d665ad27f65c44e0aa35cc633f7ee5b5e
parent326a2e8653835b12948472b8f26a53cc9e567fa6 (diff)
Use system() fix in cdromutl to get it to build (even though we don't use it)
-rw-r--r--apt-pkg/contrib/cdromutl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/cdromutl.cc b/apt-pkg/contrib/cdromutl.cc
index 9db3980da..60d49db68 100644
--- a/apt-pkg/contrib/cdromutl.cc
+++ b/apt-pkg/contrib/cdromutl.cc
@@ -98,7 +98,7 @@ bool UnmountCdrom(string Path)
if (_config->Exists("Acquire::cdrom::"+Path+"::UMount") == true)
{
- if (system(_config->Find("Acquire::cdrom::"+Path+"::UMount").c_str()) != 0)
+ if (RunCmd(_config->Find("Acquire::cdrom::"+Path+"::UMount").c_str()) != 0)
_exit(100);
_exit(0);
}
@@ -149,7 +149,7 @@ bool MountCdrom(string Path, string DeviceName)
if (_config->Exists("Acquire::cdrom::"+Path+"::Mount") == true)
{
- if (system(_config->Find("Acquire::cdrom::"+Path+"::Mount").c_str()) != 0)
+ if (RunCmd(_config->Find("Acquire::cdrom::"+Path+"::Mount").c_str()) != 0)
_exit(100);
_exit(0);
}