about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-12-12T14·10+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-12-12T14·10+0100
commit46f3eb6fdd55394e90b1041e1af5089c0ca87091 (patch)
tree5411dcadb73af43544b14caf672647ddcd735d8a /src/libstore
parentf52b6c944e90b3e35925122779175705fdc02e12 (diff)
Shut up a Valgrind warning
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 9bd03178ed9b..3ad80bc4e6f4 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -499,7 +499,7 @@ void LocalStore::makeStoreWritable()
         if (unshare(CLONE_NEWNS) == -1)
             throw SysError("setting up a private mount namespace");
 
-        if (mount(0, settings.nixStore.c_str(), 0, MS_REMOUNT | MS_BIND, 0) == -1)
+        if (mount(0, settings.nixStore.c_str(), "none", MS_REMOUNT | MS_BIND, 0) == -1)
             throw SysError(format("remounting %1% writable") % settings.nixStore);
     }
 #endif