about summary refs log tree commit diff
path: root/src/libutil/config.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-11-21T17·50+0100
committerEelco Dolstra <edolstra@gmail.com>2017-11-21T17·50+0100
commit6cdaa858d03b9c24f54f8157026cebaa02d9ac8a (patch)
treeec968c3d42d81f4154e8dcd2bdbadcdae84f2434 /src/libutil/config.hh
parent7536fe31dd8c162026d517521dc49b5d9286bfb1 (diff)
Propagate flags like --sandbox to the daemon properly
Diffstat (limited to 'src/libutil/config.hh')
-rw-r--r--src/libutil/config.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libutil/config.hh b/src/libutil/config.hh
index 99850c1cdfd5..9a32af528ec7 100644
--- a/src/libutil/config.hh
+++ b/src/libutil/config.hh
@@ -142,6 +142,12 @@ public:
 
     void set(const std::string & str) override;
 
+    virtual void override(const T & v)
+    {
+        overriden = true;
+        value = v;
+    }
+
     std::string to_string() override;
 
     void convertToArg(Args & args, const std::string & category) override;