From f26ac05a9a0c1ba9628a7c58b5420cffb369d389 Mon Sep 17 00:00:00 2001 From: CoolStar Date: Thu, 10 May 2018 15:00:46 -0700 Subject: Use system() fix in cdromutl to get it to build (even though we don't use it) --- apt-pkg/contrib/cdromutl.cc | 4 ++-- 1 file 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); } -- cgit v1.2.3