summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--methods/file.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/methods/file.cc b/methods/file.cc
index 40e85bce5..b689de619 100644
--- a/methods/file.cc
+++ b/methods/file.cc
@@ -31,11 +31,21 @@
class FileMethod : public pkgAcqMethod
{
virtual bool Fetch(FetchItem *Itm) APT_OVERRIDE;
-
+ virtual bool Configuration(std::string Message) APT_OVERRIDE;
+
public:
-
+
FileMethod() : pkgAcqMethod("1.0",SingleInstance | SendConfig | LocalOnly) {};
};
+bool FileMethod::Configuration(std::string Message)
+{
+ if (pkgAcqMethod::Configuration(Message) == false)
+ return false;
+
+ DropPrivsOrDie();
+
+ return true;
+}
// FileMethod::Fetch - Fetch a file /*{{{*/
// ---------------------------------------------------------------------