aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/add-to-store.cc2
-rw-r--r--src/nix/dump-path.cc2
-rw-r--r--src/nix/hash.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/add-to-store.cc b/src/nix/add-to-store.cc
index 7dbbbcc56..f7e3212be 100644
--- a/src/nix/add-to-store.cc
+++ b/src/nix/add-to-store.cc
@@ -30,7 +30,7 @@ struct CmdAddToStore : MixDryRun, StoreCommand
if (!namePart) namePart = baseNameOf(path);
StringSink sink;
- dumpPath(path, sink);
+ sink << dumpPath(path);
auto narHash = hashString(htSHA256, sink.s);
diff --git a/src/nix/dump-path.cc b/src/nix/dump-path.cc
index 99ff05dcc..b07c76136 100644
--- a/src/nix/dump-path.cc
+++ b/src/nix/dump-path.cc
@@ -58,7 +58,7 @@ struct CmdDumpPath2 : Command
{
logger->pause();
FdSink sink(STDOUT_FILENO);
- dumpPath(path, sink);
+ sink << dumpPath(path);
sink.flush();
}
};
diff --git a/src/nix/hash.cc b/src/nix/hash.cc
index 66c5516e7..8d4bc7826 100644
--- a/src/nix/hash.cc
+++ b/src/nix/hash.cc
@@ -88,7 +88,7 @@ struct CmdHashBase : Command
readFileSource(path)->drainInto(*hashSink);
break;
case FileIngestionMethod::Recursive:
- dumpPath(path, *hashSink);
+ *hashSink << dumpPath(path);
break;
}