summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-12-12 15:10:02 +0100
committerLudovic Courtès <ludo@gnu.org>2015-06-03 18:08:58 +0200
commit159b7103a7331db16f5db93e146217659e546cd8 (patch)
tree059cae53841459d9ec61a50968ef6f0eee8737c7
parent7930b2cb76d3d2f9874f99502f10114c9a413b08 (diff)
downloadguix-159b7103a7331db16f5db93e146217659e546cd8.tar.gz
Shut up a Valgrind warning
-rw-r--r--nix/libstore/local-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/libstore/local-store.cc b/nix/libstore/local-store.cc
index c262b81f1d..00effa0793 100644
--- a/nix/libstore/local-store.cc
+++ b/nix/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