aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-02-27 16:35:46 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-02-27 16:42:19 +0100
commitb008674e4616cd2596d8b02273deb52f8bcb7d6c (patch)
tree0bb7ce3786cb5812296d2e8d5ca2a4d058e33dc8 /src/libstore/local-store.hh
parent826dc0d07d3b1ea6669f4ba42f73d1d29fe49642 (diff)
Refactoring: Split off the non-recursive canonicalisePathMetaData()
Also, change the file mode before changing the owner. This prevents a slight time window in which a setuid binary would be setuid root.
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r--src/libstore/local-store.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh
index d3e1ca292..14a826b3a 100644
--- a/src/libstore/local-store.hh
+++ b/src/libstore/local-store.hh
@@ -309,7 +309,7 @@ private:
in a setuid Nix installation. */
void canonicalisePathMetaData(const Path & path, uid_t fromUid);
-void canonicalisePathMetaData(const Path & path, bool recurse, uid_t fromUid);
+void canonicaliseTimestampAndPermissions(const Path & path);
MakeError(PathInUse, Error);