about summary refs log tree commit diff
path: root/src/values.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/values.cc')
-rw-r--r--src/values.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/values.cc b/src/values.cc
index fe65b977eaec..5db04036c4de 100644
--- a/src/values.cc
+++ b/src/values.cc
@@ -34,7 +34,7 @@ struct CopySource : RestoreSource
 };
 
 
-void copyFile(string src, string dst)
+void copyPath(string src, string dst)
 {
     /* Unfortunately C++ doesn't support coprocedures, so we have no
        nice way to chain CopySink and CopySource together.  Instead we
@@ -99,7 +99,7 @@ void addToStore(string srcPath, string & dstPath, Hash & hash)
     string baseName = baseNameOf(srcPath);
     dstPath = nixStore + "/" + (string) hash + "-" + baseName;
 
-    copyFile(srcPath, dstPath);
+    copyPath(srcPath, dstPath);
 
     setDB(nixDB, dbRefs, hash, dstPath);
 }