From 7f58427b9584686f80cd5eccfdd02c1ace75518a Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 10 Sep 2015 18:46:05 +0200 Subject: use a less generic special trigger filename for stdin Git-Dch: Ignore --- apt-pkg/edsp/edspindexfile.cc | 2 +- apt-pkg/edsp/edspsystem.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apt-pkg/edsp') diff --git a/apt-pkg/edsp/edspindexfile.cc b/apt-pkg/edsp/edspindexfile.cc index 409117c5e..4e0f9c26a 100644 --- a/apt-pkg/edsp/edspindexfile.cc +++ b/apt-pkg/edsp/edspindexfile.cc @@ -47,7 +47,7 @@ uint8_t edspIndex::GetIndexFlags() const } bool edspIndex::OpenListFile(FileFd &Pkg, std::string const &FileName) { - if (FileName.empty() == false && FileName != "stdin") + if (FileName.empty() == false && FileName != "/nonexistent/stdin") return pkgDebianIndexRealFile::OpenListFile(Pkg, FileName); if (Pkg.OpenDescriptor(STDIN_FILENO, FileFd::ReadOnly) == false) return _error->Error("Problem opening %s",FileName.c_str()); diff --git a/apt-pkg/edsp/edspsystem.cc b/apt-pkg/edsp/edspsystem.cc index c52d537f3..4c16f76d2 100644 --- a/apt-pkg/edsp/edspsystem.cc +++ b/apt-pkg/edsp/edspsystem.cc @@ -131,8 +131,8 @@ bool edspSystem::AddStatusFiles(std::vector &List) /*{{{*/ { if (StatusFile == 0) { - if (_config->Find("edsp::scenario", "") == "stdin") - StatusFile = new edspIndex("stdin"); + if (_config->Find("edsp::scenario", "") == "/nonexistent/stdin") + StatusFile = new edspIndex("/nonexistent/stdin"); else StatusFile = new edspIndex(_config->FindFile("edsp::scenario")); } -- cgit v1.2.3